Methods

vector:

Method
Parameters
Returns
Description

b: Vector

Vector

Add the corresponding vector value: a.X + b.X a.Y + b.Y a.Z + b.Z

b: Vector

Vector

Subtract the corresponding vector value: a.X - b.X a.Y - b.Y a.Z - b.Z

b: Vector

float

Measure the degree of directional similarity between the parameters: a.X*b.X + a.Y*b.Y + a.Z*b.Z

b: float

Vector

Multiply each vector value by a number:

a.X * b a.Y * b a.Z * b

b: Vector

Vector

Create a third vector, perpendicular to the parameters:

a.Y*b.Z - a.Z*b.Y a.Z*b.X - a.X*b.Z a.X*b.Y - a.Y*b.X

None

float

Calculate the scale of the vector. mag = Sqrt(v.X^2 ​ +v.Y^2 ​ +v.Z^2)

None

Vector

Make a vector unit length:

mag = Sqrt(v.X^2 ​ +v.Y^2 ​ +v.Z^2)

norm = Mul(v, 1/mag)

Last updated