Struct: Vector3D

Vector in 3D-space

Constructors

Name Description
Vector3D(Double, Double, Double) Create a vector with ( x, y, z ) coordinates

Methods

Name Description
Add(Vector3D) Add vector to itself.
CloneNormalized() Create a normalized copy of a vector
Cross(Vector3D, Vector3D) Cross product - same as multiply operator
CrossProduct(Vector3D) Cross product.
Dot(Vector3D, Vector3D) Dot product.
DotProduct(Vector3D) Dot product.
Equals(Object) Object.Equals(object o) override
GetDistance(Vector3D, Vector3D) Squared distance between vectors/points
GetDistanceSquared(Vector3D, Vector3D) Squared distance between vectors/points
GetHashCode() Object.GetHashCode() override
Normalize() Convert to an unit vector
Subtract(Vector3D) Subtract vector from itself.
ToString() String representation.

Properties

Name Description
Item
Magnitude Vector magnitude accessor
MagnitudeSquared Vector magnitude squared accessor

Fields

Name Description
I X-axis
IJK XYZ
J Y-axis
K Z-axis
X The X coordinate
Y The Y coordinate
Z The Z coordinate
Zero Coordinate system origin