Vector3

constructor(x: Float = 0.0f, y: Float = 0.0f, z: Float = 0.0f)

Creates a new Vector3 instance with the specified x, y, z positions.

Parameters

x

The x position.

y

The y position.

z

The z position.


constructor(value: Float = 0.0f)

Initializes a Vector3 instance with a single float value.

Parameters

value

The float value that will be set to x, y, z.


constructor(other: Vector3)

Initializes a Vector3 instance from another Vector3 instance.

Parameters

other

The Vector3 instance used to initialize a new Vector3 instance.