Vector3D

Vector in 3D-space

Declaration Syntax

public sealed struct Vector3D : ValueType, ICloneable

Table 1746: Members

Constructor

Vector3D(double[])

Create a vector with coordinates set to "coordinates". Depending on the length of "coordinates" array, assign 0, 1, 2, or 3 of vector's components.

Constructor

Vector3D(Vector3D)

Copy constructor

Constructor

Vector3D(double, double, double)

Create a vector with ( x, y, z ) coordinates

Field

I

X-axis

Field

IJK

XYZ

Field

J

Y-axis

Field

K

Z-axis

Field

X

The X coordinate

Field

Y

The Y coordinate

Field

Z

The Z coordinate

Field

Zero

Coordinate system origin

Property

Item

Indexer

Property

Magnitude

Vector magnitude accessor

Property

MagnitudeSquared

Vector magnitude squared accessor

Method

Add(Vector3D)

Add vector to itself.

Method

CloneNormalized()

Create a normalized copy of a vector

Method

Cross(Vector3D, Vector3D)

Cross product - same as multiply operator

Method

CrossProduct(Vector3D)

Cross product.

Method

Dot(Vector3D, Vector3D)

Dot product.

Method

DotProduct(Vector3D)

Dot product.

Method

Equals(object)

Object.Equals(object o) override

Method

GetDistance(Vector3D, Vector3D)

Squared distance between vectors/points

Method

GetDistanceSquared(Vector3D, Vector3D)

Squared distance between vectors/points

Method

GetHashCode()

Object.GetHashCode() override

Method

Normalize()

Convert to an unit vector

Method

Subtract(Vector3D)

Subtract vector from itself.

Method

ToString()

String representation.

operator

op_Addition(Vector3D, Vector3D)

Plus operator

operator

op_Division(Vector3D, double)

Divide a vector by a factor operator.

operator

op_Equality(Vector3D, Vector3D)

Equal operator

operator

op_Explicit(Vector3D)

Cast operator into a double[] array.

operator

op_Inequality(Vector3D, Vector3D)

Not-Equal operator

operator

op_Multiply(double, Vector3D)

Multiply a factor by a vector operator.

operator

op_Multiply(Vector3D, double)

Multiply a vector by a factor operator.

operator

op_Multiply(Vector3D, Vector3D)

Multiply two vectors operator - defined as CrossProduct.

operator

op_Subtraction(Vector3D, Vector3D)

Minus operator

operator

op_UnaryNegation(Vector3D)

Unary minus operator