Constructors
constructor
- new b2Vec3(): b2Vec3
- newb2Vec3(data: Float32Array): b2Vec3
- newb2Vec3(x: number, y: number, z: number): b2Vec3
-
-
Parameters
-
Parameters
-
x: number
-
y: number
-
z: number
Properties
Readonly data
data: Float32Array
Static Readonly ZERO
ZERO
: Readonly<b2Vec3> = new b2Vec3(0, 0, 0)
Static Readonly s_t0
Accessors
x
- get x(): number
- set x(value: number): void
-
Returns number
-
Parameters
Returns void
y
- get y(): number
- set y(value: number): void
-
Returns number
-
Parameters
Returns void
z
- get z(): number
- set z(value: number): void
-
Returns number
-
Parameters
Returns void
Methods
Clone
-
Copy
-
Parameters
Returns this
SelfAdd
-
Parameters
Returns this
SelfAddXYZ
- SelfAddXYZ(x: number, y: number, z: number): this
-
Parameters
-
x: number
-
y: number
-
z: number
Returns this
SelfMul
-
Parameters
Returns this
SelfNeg
-
Returns this
SelfSub
-
Parameters
Returns this
SelfSubXYZ
- SelfSubXYZ(x: number, y: number, z: number): this
-
Parameters
-
x: number
-
y: number
-
z: number
Returns this
SetXYZ
- SetXYZ(x: number, y: number, z: number): this
-
Parameters
-
x: number
-
y: number
-
z: number
Returns this
SetZero
-
Returns this
Static CrossV3V3
- CrossV3V3<T>(a: XYZ, b: XYZ, out: T): T
-
Type parameters
Parameters
Returns T
Static DotV3V3
- DotV3V3(a: XYZ, b: XYZ): number
-
Parameters
Returns number