Constructorsconstructor new Vector3 ( x ?: number , y ?: number , z ?: number ) : Vector3 Parameters x : number = 0 y : number = 0 z : number = 0 Properties Methodsadd Multiply addMultiply ( vector : Readonly < Vector3 > , scale : number ) : this Returns this This instance.
add MultiplyXYZ addMultiplyXYZ ( x : number , y : number , z : number , scale : number ) : this Parameters x : number y : number z : number scale : number Returns this This instance.
addXYZ addXYZ ( x : number , y : number , z : number ) : this Parameters x : number y : number z : number Returns this This instance.
clamp clamp ( floor : number , ceil : number ) : this Parameters floor : number ceil : number Returns this This instance.
divide Scale divideScale ( scale : number ) : this Returns this This instance.
divideXYZ divideXYZ ( x : number , y : number , z : number ) : this Parameters x : number y : number z : number Returns this This instance.
fraction fraction ( normal : Readonly < Vector3 > , index : number ) : this Returns this This instance.
invert Add invertAdd () : this Returns this This instance.
invert Multiply invertMultiply () : this Returns this This instance.
multiply Scale multiplyScale ( scale : number ) : this Returns this This instance.
multiplyXYZ multiplyXYZ ( x : number , y : number , z : number ) : this Parameters x : number y : number z : number Returns this This instance.
normalize normalize () : this Returns this This instance.
setXYZ setXYZ ( x : number , y : number , z : number ) : this Parameters x : number y : number z : number Returns this This instance.
subtract subtract ( vector : Vector3 ) : this Returns this This instance.
subtractXYZ subtractXYZ ( x : number , y : number , z : number ) : this Parameters x : number y : number z : number Returns this This instance.
A vector with 3 components, labeled:
X
,Y
,Z
.