Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
Vector3d Struct Reference

Public Member Functions

Vector3d Basis (Vector3d X, Vector3d Y, Vector3d Z)
 
override bool Equals (object other)
 
override int GetHashCode ()
 
bool IsZero ()
 
void Normalize ()
 
static Vector3d RotateTowards (Vector3d from, Vector3d to, float maxRadiansDelta, float maxMagnitudeDelta)
 
void Scale (Vector3d scale)
 
static Vector3d Slerp (Vector3d from, Vector3d to, float t)
 
void Swizzle ()
 
override string ToString ()
 
string ToString (string format)
 
 Vector3d (double x, double y, double z)
 
 Vector3d (double x, double y)
 
void Zero ()
 

Static Public Member Functions

static double Angle (Vector3d from, Vector3d to)
 
static double AngleBetween (Vector3d from, Vector3d to)
 
static Vector3d Cross (Vector3d lhs, Vector3d rhs)
 
static double Distance (Vector3d a, Vector3d b)
 
static double Dot (Vector3d lhs, Vector3d rhs)
 
static Vector3d Exclude (Vector3d excludeThis, Vector3d fromThat)
 
static Vector3d Lerp (Vector3d from, Vector3d to, double t)
 
static double Magnitude (Vector3d a)
 
static Vector3d Max (Vector3d lhs, Vector3d rhs)
 
static Vector3d Min (Vector3d lhs, Vector3d rhs)
 
static Vector3d Normalize (Vector3d value)
 
static implicit operator Vector3 (Vector3d v)
 
static implicit operator Vector3d (Vector3 v)
 
static bool operator!= (Vector3d lhs, Vector3d rhs)
 
static Vector3d operator* (Vector3d a, double d)
 
static Vector3d operator* (double d, Vector3d a)
 
static Vector3d operator+ (Vector3d a, Vector3d b)
 
static Vector3d operator+ (Vector3 a, Vector3d b)
 
static Vector3d operator+ (Vector3d a, Vector3 b)
 
static Vector3d operator- (Vector3d a, Vector3d b)
 
static Vector3d operator- (Vector3 a, Vector3d b)
 
static Vector3d operator- (Vector3d a, Vector3 b)
 
static Vector3d operator- (Vector3d a)
 
static Vector3d operator/ (Vector3d a, double d)
 
static bool operator== (Vector3d lhs, Vector3d rhs)
 
static void OrthoNormalize (ref Vector3d normal, ref Vector3d tangent)
 
static void OrthoNormalize (ref Vector3d normal, ref Vector3d tangent, ref Vector3d binormal)
 
static Vector3d Project (Vector3d vector, Vector3d onNormal)
 
static Vector3d Reflect (Vector3d inDirection, Vector3d inNormal)
 
static Vector3d Scale (Vector3d a, Vector3d b)
 
static double SqrMagnitude (Vector3d a)
 

Public Attributes

double x
 
double y
 
double z
 

Properties

static Vector3d back [get]
 
static Vector3d down [get]
 
static Vector3d forward [get]
 
static Vector3d fwd [get]
 
static Vector3d left [get]
 
double magnitude [get]
 
Vector3d normalized [get]
 
static Vector3d one [get]
 
static Vector3d right [get]
 
double sqrMagnitude [get]
 
double this[int index] [get, set]
 
static Vector3d up [get]
 
Vector3d xzy [get]
 
static Vector3d zero [get]
 

Constructor & Destructor Documentation

Vector3d.Vector3d ( double  x,
double  y,
double  z 
)
inline
Vector3d.Vector3d ( double  x,
double  y 
)
inline

Member Function Documentation

static double Vector3d.Angle ( Vector3d  from,
Vector3d  to 
)
inlinestatic
static double Vector3d.AngleBetween ( Vector3d  from,
Vector3d  to 
)
inlinestatic
Vector3d Vector3d.Basis ( Vector3d  X,
Vector3d  Y,
Vector3d  Z 
)
inline
static Vector3d Vector3d.Cross ( Vector3d  lhs,
Vector3d  rhs 
)
inlinestatic
static double Vector3d.Distance ( Vector3d  a,
Vector3d  b 
)
inlinestatic
static double Vector3d.Dot ( Vector3d  lhs,
Vector3d  rhs 
)
inlinestatic
override bool Vector3d.Equals ( object  other)
inline
static Vector3d Vector3d.Exclude ( Vector3d  excludeThis,
Vector3d  fromThat 
)
inlinestatic
override int Vector3d.GetHashCode ( )
inline
bool Vector3d.IsZero ( )
inline
static Vector3d Vector3d.Lerp ( Vector3d  from,
Vector3d  to,
double  t 
)
inlinestatic
static double Vector3d.Magnitude ( Vector3d  a)
inlinestatic
static Vector3d Vector3d.Max ( Vector3d  lhs,
Vector3d  rhs 
)
inlinestatic
static Vector3d Vector3d.Min ( Vector3d  lhs,
Vector3d  rhs 
)
inlinestatic
static Vector3d Vector3d.Normalize ( Vector3d  value)
inlinestatic
void Vector3d.Normalize ( )
inline
static implicit Vector3d.operator Vector3 ( Vector3d  v)
inlinestatic
static implicit Vector3d.operator Vector3d ( Vector3  v)
inlinestatic
static bool Vector3d.operator!= ( Vector3d  lhs,
Vector3d  rhs 
)
inlinestatic
static Vector3d Vector3d.operator* ( Vector3d  a,
double  d 
)
inlinestatic
static Vector3d Vector3d.operator* ( double  d,
Vector3d  a 
)
inlinestatic
static Vector3d Vector3d.operator+ ( Vector3d  a,
Vector3d  b 
)
inlinestatic
static Vector3d Vector3d.operator+ ( Vector3  a,
Vector3d  b 
)
inlinestatic
static Vector3d Vector3d.operator+ ( Vector3d  a,
Vector3  b 
)
inlinestatic
static Vector3d Vector3d.operator- ( Vector3d  a,
Vector3d  b 
)
inlinestatic
static Vector3d Vector3d.operator- ( Vector3  a,
Vector3d  b 
)
inlinestatic
static Vector3d Vector3d.operator- ( Vector3d  a,
Vector3  b 
)
inlinestatic
static Vector3d Vector3d.operator- ( Vector3d  a)
inlinestatic
static Vector3d Vector3d.operator/ ( Vector3d  a,
double  d 
)
inlinestatic
static bool Vector3d.operator== ( Vector3d  lhs,
Vector3d  rhs 
)
inlinestatic
static void Vector3d.OrthoNormalize ( ref Vector3d  normal,
ref Vector3d  tangent 
)
inlinestatic
static void Vector3d.OrthoNormalize ( ref Vector3d  normal,
ref Vector3d  tangent,
ref Vector3d  binormal 
)
inlinestatic
static Vector3d Vector3d.Project ( Vector3d  vector,
Vector3d  onNormal 
)
inlinestatic
static Vector3d Vector3d.Reflect ( Vector3d  inDirection,
Vector3d  inNormal 
)
inlinestatic
static Vector3d Vector3d.RotateTowards ( Vector3d  from,
Vector3d  to,
float  maxRadiansDelta,
float  maxMagnitudeDelta 
)
static Vector3d Vector3d.Scale ( Vector3d  a,
Vector3d  b 
)
inlinestatic
void Vector3d.Scale ( Vector3d  scale)
inline
static Vector3d Vector3d.Slerp ( Vector3d  from,
Vector3d  to,
float  t 
)
static double Vector3d.SqrMagnitude ( Vector3d  a)
inlinestatic
void Vector3d.Swizzle ( )
inline
override string Vector3d.ToString ( )
inline
string Vector3d.ToString ( string  format)
inline
void Vector3d.Zero ( )
inline

Member Data Documentation

double Vector3d.x
double Vector3d.y
double Vector3d.z

Property Documentation

Vector3d Vector3d.back
staticget
Vector3d Vector3d.down
staticget
Vector3d Vector3d.forward
staticget
Vector3d Vector3d.fwd
staticget
Vector3d Vector3d.left
staticget
double Vector3d.magnitude
get
Vector3d Vector3d.normalized
get
Vector3d Vector3d.one
staticget
Vector3d Vector3d.right
staticget
double Vector3d.sqrMagnitude
get
double Vector3d.this[int index]
getset
Vector3d Vector3d.up
staticget
Vector3d Vector3d.xzy
get
Vector3d Vector3d.zero
staticget

The documentation for this struct was generated from the following file: