Skip to content

float3

float3 describes a vector in 3D spaces.

Properties

float3 float3.zero
A float3 with the magnitude of zero
float3 float3.one
A float3 with a value of 1 on every axis
float3 float3.up
A float3 with a value of 1 on the Y axis
number float3.x
The x-coordinate of the float3
number float3.y
The y-coordinate of the float3
number float3.z
The z-coordinate of the float3

Functions

float3 float3.New(number x, number y, number z)
Constructs a new float3 using the given x, y, and z components.
float3 float3.Cross(float3 a, float3 b)
Returns the cross product of the two vectors.