3ī¸âƒŖVector3

Built-in Vector3 library.

Properties:

Name
Type
Description

x

float

X member of the Vector

y

float

Y member of the Vector

z

float

Z member of the Vector

Static Functions:

Vector3

Vector3(x: float, y: float, z: float): Vector3

Argument
Type
Description

x

float

X member of the Vector

y

float

Y member of the Vector

z

float

Z member of the Vector

Creates a new Vector3 object.

Functions:

.Add

Vector3_Object.Add(other: Vector3)

Argument
Type
Description

other

Vector3

Other Vector

Adds a Vector3 to this Vector3 object.

.Subtract

Vector3_Object.Subtract(other: Vector3)

Argument
Type
Description

other

Vector3

Other Vector

Subtracts this Vector3 object with the specified Vector3.

.Multiply

Vector3_Object.Multiply(value: float)

Argument
Type
Description

value

float

Multiply value

Multiplies this Vector3 object by the specified value.

.Divide

Vector3_Object.Divide(value: float)

Argument
Type
Description

value

float

Divide value

Divides this Vector3 object by the specified value.

.Equals

Vector3_Object.Equals(other: Vector3)

Argument
Type
Description

other

Vector3

Other Vector

Compares two Vector3 objects for equality.

.Length

Vector3_Object.Length(): float

Gets the length of this Vector3 object.

.Normalize

Vector3_Object.Normalize()

Normalizes this Vector3 object.

.DistTo

Vector3_Object.DistTo(other: Vector3): float

Argument
Type
Description

other

Vector3

Other Vector

Gets the length between the two Vector3 objects.

Last updated

Was this helpful?