Vector3F

Vector3F struct

Vector with 3 float parameters

public struct Vector3F : IEquatable<Vector3F>

Constructors

NameDescription
Vector3F(float, float, float)Initializes a new instance of the Vector3F struct.

Properties

NameDescription
B { get; set; }Blue component
G { get; set; }Green component
Item { get; }Gets a coordinate at the specified index.
Length { get; }Length
R { get; set; }Red component
SquareLength { get; }Square length

Methods

NameDescription
CrossProduct(Vector3F, Vector3F)Returns the cross product of two vectors.
DotProduct(Vector3F, Vector3F)Returns the dot product of two vectors.
Equals(object)Returns a boolean indicating whether the given Object is equal to this Vector3F instance.
Equals(Vector3F)Returns a boolean indicating whether the given Vector3F is equal to this Vector3F instance.
GetHashCode()Returns the hash code for this instance.
NewellFaceNormal(List<Vector3F>, List<int>)Calculates normal of face by newell’s method.
Normalized()Creates normilized vector.
Reflect(Vector3F, Vector3F)Calculates a reflected vector.
SafeNormalized()Creates normilized vector safely(returns self if length is zero).
To2F()Creates Vector2F.
ToVector4F(float)Creates Vector4F.
XAxis()Creates x-axis.
YAxis()Creates y-axis.
ZAxis()Creates z-axis.
Zero()Creates vector with (0, 0, 0).

Fields

NameDescription
XX coordinate
YY coordinate
ZZ coordinate

Operators

NameDescription
operator ==Returns a boolean indicating whether the two given vectors are equal.
operator !=Returns a boolean indicating whether the two given vectors are not equal.
operator -Negates a given vector.
operator -Subtracts the second vector from the first.
operator +Adds two vectors together.
operator *Multiplies vector by scalar value.
operator *Multiplies vector by scalar value.
operator *Subtracts the second vector from the first.

See Also