Vector3F class

Vector3F class

Vector with 3 float parameters

The Vector3F type exposes the following members:

Constructors

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

Properties

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

Gets a coordinate at the specified index.

Indexer

NameDescription
[index]The index.

Methods

MethodDescription
to_2fCreates Vector2F.
normalizedCreates normilized vector.
safe_normalizedCreates normilized vector safely(returns self if length is zero).
to_vector_4fCreates Vector4F.
equalsReturns a boolean indicating whether the given Vector3F is equal to this Vector3F instance.
zeroCreates vector with (0, 0, 0).
x_axisCreates x-axis.
y_axisCreates y-axis.
z_axisCreates z-axis.
dot_productReturns the dot product of two vectors.
cross_productReturns the cross product of two vectors.
newell_face_normal
reflectCalculates a reflected vector.

See Also