[DebuggerDisplay("{DebuggerDisplay()}")] public class Vec3 : IComparable<Vec3>
Represents a single, three-dimensional vector.

Constructors

Vec3

#
public Vec3()

Vec3

#
public Vec3(double nX, double nY, double nZ)
nX (double)
nY (double)
nZ (double)

Vec3

#
public Vec3(Vec3 other)
other (Vec3)

Vec3

#
public Vec3(Vector3d other)
other (Vector3d)

Vec3

#
public Vec3(Vector3f other)
other (Vector3f)

Fields

x

#
public double x

y

#
public double y

z

#
public double z

Properties

DebuggerDisplay

#
public string DebuggerDisplay { get; }

IsValid

#
public bool IsValid { get; }

Unit_X

#
public static Vec3 Unit_X { get; }

Unit_Y

#
public static Vec3 Unit_Y { get; }

Unit_Z

#
public static Vec3 Unit_Z { get; }

Methods

CompareTo

#
public int CompareTo(Vec3 other)
other (Vec3)

CreatePerpendicular

#
public Vec3 CreatePerpendicular()

CrossProduct

#
public static Vec3 CrossProduct(double ax, double ay, double az, double bx, double by, double bz)
ax (double)
ay (double)
az (double)
bx (double)
by (double)
bz (double)

CrossProduct

#
public static Vec3 CrossProduct(Vec3 A, Vec3 B)
A (Vec3)
B (Vec3)

Duplicate

#
public Vec3 Duplicate()

Length

#
public double Length()

LengthFlat

#
public double LengthFlat()

LengthSquared

#
public double LengthSquared()

LengthSquaredFlat

#
public double LengthSquaredFlat()

ParallelTo

#
public Parallax ParallelTo(Vec3 v, double angle_tol)
v (Vec3)
angle_tol (double)

ParallelTo

#
public Parallax ParallelTo(Vec3 v)
v (Vec3)

PerpendicularTo

#
public bool PerpendicularTo(Vec3 v, double angle_tol)
v (Vec3)
angle_tol (double)

PerpendicularTo

#
public bool PerpendicularTo(Vec3 v)
v (Vec3)

Set

#
public void Set(double nX, double nY, double nZ)
nX (double)
nY (double)
nZ (double)

Set

#
public void Set(Vec3 other)
other (Vec3)

ToString

#
public override string ToString()
Object.ToString

Unitize

#
public void Unitize()

Operators