vec4
Constructs a new Vector4 instance. An equivalent of Vector4 constructor that supports Kotlin syntax features: named parameters with default values.
Return
a new Vector4 instance storing the passed values.
Parameters
the X component. Defaults to 0f.
the Y component. Defaults to 0f.
the Z component. Defaults to 0f.
the W component. Defaults to 0f.
Constructs a new Vector4 instance. An equivalent of Vector4 constructor that supports Kotlin syntax features: named parameters with default values.
Return
a new Vector4 instance storing the passed values.
Parameters
stores the X and Y components. Will be copied.
the Z component. Defaults to 0f.
the W component. Defaults to 0f.
Constructs a new Vector4 instance copying values from the passed Vector2 instances.
Return
a new Vector4 instance storing the passed values.
Parameters
stores the X and Y components. Will be copied.
its X component will be used as Z, while the Y component will be copied as W.
Constructs a new Vector4 instance copying values from the passed Vector3 instance. An equivalent of Vector4 constructor that supports Kotlin syntax features: named parameters with default values.
Return
a new Vector4 instance storing the passed values.
Parameters
stores the X, Y, and Z components. Will be copied.
the W component. Defaults to 0f.