vec3
Constructs a new Vector3 instance. An equivalent of Vector3 constructor that supports Kotlin syntax features: named parameters with default values.
Return
a new Vector3 instance storing the passed values.
Parameters
x
the X component. Defaults to 0f.
y
the Y component. Defaults to 0f.
z
the Z component. Defaults to 0f.
Constructs a new Vector3 instance. An equivalent of Vector3 constructor that supports Kotlin syntax features: named parameters with default values.
Return
a new Vector3 instance storing the passed values.
Parameters
vector2
stores the X and Y components. Will be copied.
z
the Z component. Defaults to 0f.