- Preparing search index...
- The search index is not available
feng3d
Constructors
constructor
- new Vector4(x?: number, y?: number, z?: number, w?: number): Vector4
-
Parameters
-
x: number = 0
-
y: number = 0
-
z: number = 0
-
w: number = 0
Properties
__class__
__class__: "Vector4"
Methods
dot
- dot(a: Vector4): number
-
Returns number
equals
- equals(v: Vector4, precision?: number): boolean
-
Parameters
-
-
precision: number = mathUtil.PRECISION
Returns boolean
fromArray
- fromArray(array: ArrayLike<number>, offset?: number): Vector4
-
Parameters
-
array: ArrayLike<number>
-
offset: number = 0
set
- set(x: number, y: number, z?: number, w?: number): Vector4
-
Parameters
-
x: number
-
y: number
-
z: number = 0
-
w: number = 0
toArray
- toArray(array?: number[], offset?: number): number[]
-
Parameters
-
array: number[] = []
-
offset: number = 0
Returns number[]
toString
- toString(): string
-
Returns string
四维向量