Struct Vector3d
- Namespace
- Coherence.Common
- Assembly
- Coherence.Common.dll
Constructors
Vector3d(double, double)
public Vector3d(double x, double y)
Parameters
x
double
y
double
Vector3d(double, double, double)
public Vector3d(double x, double y, double z)
Parameters
x
double
y
double
z
double
Vector3d(float, float, float)
public Vector3d(float x, float y, float z)
Parameters
x
float
y
float
z
float
Fields
x
Field Value
- double
y
Field Value
- double
z
Field Value
- double
Properties
back
public static Vector3d back { get; }
Property Value
- Vector3d
down
public static Vector3d down { get; }
Property Value
- Vector3d
forward
public static Vector3d forward { get; }
Property Value
- Vector3d
left
public static Vector3d left { get; }
Property Value
- Vector3d
magnitude
public double magnitude { get; }
Property Value
- double
normalized
public Vector3d normalized { get; }
Property Value
- Vector3d
one
public static Vector3d one { get; }
Property Value
- Vector3d
right
public static Vector3d right { get; }
Property Value
- Vector3d
sqrMagnitude
public double sqrMagnitude { get; }
Property Value
- double
up
public static Vector3d up { get; }
Property Value
- Vector3d
zero
public static Vector3d zero { get; }
Property Value
- Vector3d
Methods
Equals(object)
public override bool Equals(object other)
Parameters
other
object
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
IsWithinRange(double)
public bool IsWithinRange(double maxRange)
Parameters
maxRange
double
Returns
- bool
Magnitude(Vector3d)
public static double Magnitude(Vector3d a)
Parameters
a
Vector3d
Returns
- double
Normalize()
Normalize(Vector3d)
public static Vector3d Normalize(Vector3d value)
Parameters
value
Vector3d
Returns
- Vector3d
SqrMagnitude(Vector3d)
public static double SqrMagnitude(Vector3d a)
Parameters
a
Vector3d
Returns
- double
ToCoreVector3()
public Vector3 ToCoreVector3()
Returns
- Vector3
ToString()
public override string ToString()
Returns
- string
Operators
operator +(Vector3d, Vector3d)
public static Vector3d operator +(Vector3d a, Vector3d b)
Parameters
a
Vector3d
b
Vector3d
Returns
- Vector3d
operator /(Vector3d, double)
public static Vector3d operator /(Vector3d a, double d)
Parameters
a
Vector3d
d
double
Returns
- Vector3d
operator ==(Vector3d, Vector3d)
public static bool operator ==(Vector3d lhs, Vector3d rhs)
Parameters
lhs
Vector3d
rhs
Vector3d
Returns
- bool
operator !=(Vector3d, Vector3d)
public static bool operator !=(Vector3d lhs, Vector3d rhs)
Parameters
lhs
Vector3d
rhs
Vector3d
Returns
- bool
operator *(Vector3d, double)
public static Vector3d operator *(Vector3d a, double d)
Parameters
a
Vector3d
d
double
Returns
- Vector3d
operator *(double, Vector3d)
public static Vector3d operator *(double d, Vector3d a)
Parameters
d
double
a
Vector3d
Returns
- Vector3d
operator -(Vector3d, Vector3d)
public static Vector3d operator -(Vector3d a, Vector3d b)
Parameters
a
Vector3d
b
Vector3d
Returns
- Vector3d
operator -(Vector3d)
public static Vector3d operator -(Vector3d a)
Parameters
a
Vector3d
Returns
- Vector3d