AR + GPS Location
3.0.0
|
Public Member Functions | |
DVector2 | Clone () |
DVector2 (double x=0.0, double y=0.0) | |
Initializes a new instance of the T:DVector2 struct. More... | |
Vector2 | toVector2 () |
Converts to a Vector2. More... | |
bool | Equals (DVector2 v, double e=0.00005) |
Equals the specified v and e. More... | |
void | Normalize () |
Normalize this instance. More... | |
void | Set (double newX=0.0, double newY=0.0) |
Set the specified x and y. More... | |
override string | ToString () |
Returns a T:System.String that represents the current T:DVector2. More... | |
Static Public Member Functions | |
static double | Dot (DVector2 a, DVector2 b) |
Dot the specified a and b. More... | |
static double | Distance (DVector2 a, DVector2 b) |
Distance the specified a and b. More... | |
static DVector2 | Lerp (DVector2 a, DVector2 b, double t) |
Lerp the specified a, b and t. More... | |
static DVector2 | operator* (DVector2 a, double b) |
Computes the product of a and b , yielding a new T:DVector2. More... | |
static DVector2 | operator/ (DVector2 a, double b) |
Computes the division of a and b , yielding a new T:DVector2. More... | |
static DVector2 | operator+ (DVector2 a, DVector2 b) |
Adds a DVector2 to a DVector2, yielding a new T:DVector2. More... | |
static DVector2 | operator- (DVector2 a, DVector2 b) |
Subtracts a DVector2 from a DVector2, yielding a new T:DVector2. More... | |
Public Attributes | |
double | x |
double | y |
Properties | |
double | magnitude [get] |
Gets the magnitude of the vector. More... | |
DVector2 | normalized [get] |
Gets the normalized version of this vector. More... | |
Definition at line 8 of file DVector2.cs.
ARLocation.DVector2.DVector2 | ( | double | x = 0.0 , |
double | y = 0.0 |
||
) |
Initializes a new instance of the T:DVector2 struct.
x | The x coordinate. |
y | The y coordinate. |
Definition at line 54 of file DVector2.cs.
Distance the specified a and b.
a | The alpha component. |
b | The blue component. |
Definition at line 127 of file DVector2.cs.
Dot the specified a and b.
a | The alpha component. |
b | The blue component. |
Definition at line 116 of file DVector2.cs.
bool ARLocation.DVector2.Equals | ( | DVector2 | v, |
double | e = 0.00005 |
||
) |
Equals the specified v and e.
v | V. |
e | E. |
Definition at line 75 of file DVector2.cs.
Lerp the specified a, b and t.
a | The alpha component. |
b | The blue component. |
t | T. |
Definition at line 139 of file DVector2.cs.
void ARLocation.DVector2.Normalize | ( | ) |
Normalize this instance.
Definition at line 83 of file DVector2.cs.
Computes the product of a
and b
, yielding a new T:DVector2.
a | The DVector2 to multiply. |
b | The double to multiply. |
a
* b
.Definition at line 151 of file DVector2.cs.
Computes the division of a
and b
, yielding a new T:DVector2.
a | The DVector2 to divide (the divident). |
b | The double to divide (the divisor). |
a
/ b
.Definition at line 165 of file DVector2.cs.
void ARLocation.DVector2.Set | ( | double | newX = 0.0 , |
double | newY = 0.0 |
||
) |
override string ARLocation.DVector2.ToString | ( | ) |
Returns a T:System.String that represents the current T:DVector2.
Definition at line 105 of file DVector2.cs.
Vector2 ARLocation.DVector2.toVector2 | ( | ) |
|
get |
|
get |
Gets the normalized version of this vector.
The normalized.
Definition at line 29 of file DVector2.cs.