Gravity Engine 12.0
Unity Asset for Gravity
Loading...
Searching...
No Matches
UnityEngine.Vector3d Struct Reference

Public Member Functions

 Vector3d (double x, double y, double z)
 
 Vector3d (ref double[] d)
 
 Vector3d (float x, float y, float z)
 
 Vector3d (Vector3 v3)
 
 Vector3d (double x, double y)
 
Vector3 ToVector3 ()
 
double[] ToDoubleArray ()
 
void Set (double new_x, double new_y, double new_z)
 
void Scale (Vector3d scale)
 
override int GetHashCode ()
 
override bool Equals (object other)
 
void Normalize ()
 
override string ToString ()
 
bool IsNan ()
 

Static Public Member Functions

static Vector3d operator+ (Vector3d a, Vector3d b)
 
static Vector3d operator- (Vector3d a, Vector3d b)
 
static Vector3d operator- (Vector3d a)
 
static Vector3d operator* (Vector3d a, double d)
 
static Vector3d operator* (double d, Vector3d a)
 
static Vector3d operator/ (Vector3d a, double d)
 
static bool operator== (Vector3d lhs, Vector3d rhs)
 
static bool operator!= (Vector3d lhs, Vector3d rhs)
 
static operator Vector3 (Vector3d vector3d)
 
static Vector3d Lerp (Vector3d from, Vector3d to, double t)
 
static Vector3d Slerp (Vector3d from, Vector3d to, double t)
 
static void OrthoNormalize (ref Vector3d normal, ref Vector3d tangent)
 
static void OrthoNormalize (ref Vector3d normal, ref Vector3d tangent, ref Vector3d binormal)
 
static Vector3d MoveTowards (Vector3d current, Vector3d target, double maxDistanceDelta)
 
static Vector3d RotateTowards (Vector3d current, Vector3d target, double maxRadiansDelta, double maxMagnitudeDelta)
 
static Vector3d SmoothDamp (Vector3d current, Vector3d target, ref Vector3d currentVelocity, double smoothTime, double maxSpeed)
 
static Vector3d SmoothDamp (Vector3d current, Vector3d target, ref Vector3d currentVelocity, double smoothTime)
 
static Vector3d SmoothDamp (Vector3d current, Vector3d target, ref Vector3d currentVelocity, double smoothTime, double maxSpeed, double deltaTime)
 
static Vector3d Scale (Vector3d a, Vector3d b)
 
static Vector3d Cross (Vector3d lhs, Vector3d rhs)
 
static Vector3d Reflect (Vector3d inDirection, Vector3d inNormal)
 
static Vector3d Normalize (Vector3d value)
 
static double Dot (Vector3d lhs, Vector3d rhs)
 
static Vector3d Project (Vector3d vector, Vector3d onNormal)
 
static Vector3d Exclude (Vector3d excludeThis, Vector3d fromThat)
 
static double Angle (Vector3d from, Vector3d to)
 
static double Distance (Vector3d a, Vector3d b)
 
static Vector3d ClampMagnitude (Vector3d vector, double maxLength)
 
static double Magnitude (Vector3d a)
 
static double SqrMagnitude (Vector3d a)
 
static Vector3d Min (Vector3d lhs, Vector3d rhs)
 
static Vector3d Max (Vector3d lhs, Vector3d rhs)
 
static double AngleRadians (Vector3d from, Vector3d to)
 
static Vector3d RotateAxisAngleRadians (Vector3d v, Vector3d axis, double angle)
 Rotate vector v by angle around axis using: https://en.wikipedia.org/wiki/Rodrigues'_rotation_formula.
 

Public Attributes

double x
 
double y
 
double z
 

Static Public Attributes

const float kEpsilon = 1E-05f
 

Properties

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

Member Function Documentation

◆ RotateAxisAngleRadians()

static Vector3d UnityEngine.Vector3d.RotateAxisAngleRadians ( Vector3d  v,
Vector3d  axis,
double  angle 
)
static

Rotate vector v by angle around axis using: https://en.wikipedia.org/wiki/Rodrigues'_rotation_formula.

Parameters
v
axis
angle

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