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

Public Member Functions

 Vector2d (double x, double y)
 
void Set (double new_x, double new_y)
 
void Scale (Vector2d scale)
 
void Normalize ()
 
override string ToString ()
 
string ToString (string format)
 
override int GetHashCode ()
 
override bool Equals (object other)
 
double SqrMagnitude ()
 

Static Public Member Functions

static implicit operator Vector2d (Vector3d v)
 
static implicit operator Vector3d (Vector2d v)
 
static Vector2d operator+ (Vector2d a, Vector2d b)
 
static Vector2d operator- (Vector2d a, Vector2d b)
 
static Vector2d operator- (Vector2d a)
 
static Vector2d operator* (Vector2d a, double d)
 
static Vector2d operator* (float d, Vector2d a)
 
static Vector2d operator/ (Vector2d a, double d)
 
static bool operator== (Vector2d lhs, Vector2d rhs)
 
static bool operator!= (Vector2d lhs, Vector2d rhs)
 
static Vector2d Lerp (Vector2d from, Vector2d to, double t)
 
static Vector2d MoveTowards (Vector2d current, Vector2d target, double maxDistanceDelta)
 
static Vector2d Scale (Vector2d a, Vector2d b)
 
static double Dot (Vector2d lhs, Vector2d rhs)
 
static double Angle (Vector2d from, Vector2d to)
 
static double Distance (Vector2d a, Vector2d b)
 
static Vector2d ClampMagnitude (Vector2d vector, double maxLength)
 
static double SqrMagnitude (Vector2d a)
 
static Vector2d Min (Vector2d lhs, Vector2d rhs)
 
static Vector2d Max (Vector2d lhs, Vector2d rhs)
 

Public Attributes

double x
 
double y
 

Static Public Attributes

const double kEpsilon = 1E-05d
 

Properties

double this[int index] [get, set]
 
Vector2d normalized [get]
 
double magnitude [get]
 
double sqrMagnitude [get]
 
static Vector2d zero [get]
 
static Vector2d one [get]
 
static Vector2d up [get]
 
static Vector2d right [get]
 

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