Hilo3d API - v2.0.0
    Preparing search index...

    Class Vector3Notifier

    三维向量,具有 onUpdate 回调

    Hierarchy (View Summary)

    Index
    className: string = 'Vector3Notifier'

    类名 notify

    elements: vec3
    isVector3: boolean = true
    isVector3Notifier: boolean = true
    • Returns whether or not the vectors have approximately the same elements in the same position.

      Parameters

      • a: Vector3
      • Optionalb: Vector3

        如果不传,计算 this 和 a 的结果

      Returns boolean

      True if the vectors are equal, false otherwise.

    • Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===)

      Parameters

      • a: Vector3
      • Optionalb: Vector3

        如果不传,计算 this 和 a 的结果

      Returns boolean

      True if the vectors are equal, false otherwise.

    • 从数组赋值

      Parameters

      • array: ArrayLike<number>

        数组

      • offset: number = 0

        数组偏移值

      Returns this

      this

    • Generates a random vector with the given scale

      Parameters

      • Optionalscale: number

        Length of the resulting vector. If ommitted, a unit vector will be returned

      Returns this

      this

    • Set the components of a vec3 to the given values

      Parameters

      • x: number

        X component

      • y: number

        Y component

      • z: number

        Z component

      Returns this

      this