Vector4F class

Vector4F class

Vector with 4 float parameters

The Vector4F type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the Vector4F struct.
initInitializes a new instance of the Vector4F struct.
initInitializes a new instance of the Vector4F struct.
initInitializes a new instance of the Vector4F struct.
initConstructs a new instance of Vector4F

Properties

PropertyDescription
rRed component
gGreen component
bBlue component
aAlpha component
lengthLength
square_lengthSquare length
xX coordinate
yY coordinate
zZ coordinate
wW coordinate

Gets a coordinate at the specified index.

Indexer

NameDescription
[index]The index.

Methods

MethodDescription
normalizedCreates normilized vector.
safe_normalizedCreates normilized vector safely(returns self if length is zero).
to_vector_2fCreates Vector2F.
to_vector_3fCreates Vector3F.
equalsReturns a boolean indicating whether the given Vector4F is equal to this Vector4F instance.
zeroCreates vector with (0, 0, 0).

See Also