AR + GPS Location  3.0.0
All Classes Namespaces Functions Variables Properties Events Pages
ARLocation.DVector3 Struct Reference

Public Member Functions

 DVector3 (Vector3 v)
 
 DVector3 (double newX=0.0, double newY=0.0, double newZ=0.0)
 Initializes a new instance of the T:DVector3 struct. More...
 
Vector3 toVector3 ()
 Converts to a Vector3. More...
 
bool Equals (DVector3 v, double e=0.00005)
 Equals the specified v and e. More...
 
void Normalize ()
 Normalize this instance. More...
 
void Set (double xx=0.0, double yy=0.0, double zz=0.0)
 Set the specified x and y. More...
 
override string ToString ()
 Returns a T:System.String that represents the current T:DVector3. More...
 

Static Public Member Functions

static double Dot (DVector3 a, DVector3 b)
 Dot the specified a and b. More...
 
static double Distance (DVector3 a, DVector3 b)
 Distance the specified a and b. More...
 
static DVector3 Lerp (DVector3 a, DVector3 b, double t)
 Lerp the specified a, b and t. More...
 
static DVector3 operator* (DVector3 a, double b)
 Computes the product of a and b, yielding a new T:DVector3. More...
 
static DVector3 operator* (double b, DVector3 a)
 Computes the product of a and b, yielding a new T:DVector3. More...
 
static DVector3 operator/ (DVector3 a, double b)
 Computes the division of a and b, yielding a new T:DVector3. More...
 
static DVector3 operator+ (DVector3 a, DVector3 b)
 Adds a DVector3 to a DVector3, yielding a new T:DVector3. More...
 
static DVector3 operator- (DVector3 a, DVector3 b)
 Subtracts a DVector3 from a DVector3, yielding a new T:DVector3. More...
 

Public Attributes

double x
 
double y
 
double z
 

Properties

double magnitude [get]
 Gets the magnitude of the vector. More...
 
DVector3 normalized [get]
 Gets the normalized version of this vector. More...
 

Detailed Description

Definition at line 8 of file DVector3.cs.

Constructor & Destructor Documentation

◆ DVector3()

ARLocation.DVector3.DVector3 ( double  newX = 0.0,
double  newY = 0.0,
double  newZ = 0.0 
)

Initializes a new instance of the T:DVector3 struct.

Definition at line 55 of file DVector3.cs.

Member Function Documentation

◆ Distance()

static double ARLocation.DVector3.Distance ( DVector3  a,
DVector3  b 
)
static

Distance the specified a and b.

Returns
The distance.
Parameters
aThe alpha component.
bThe blue component.

Definition at line 132 of file DVector3.cs.

◆ Dot()

static double ARLocation.DVector3.Dot ( DVector3  a,
DVector3  b 
)
static

Dot the specified a and b.

Returns
The dot.
Parameters
aThe alpha component.
bThe blue component.

Definition at line 121 of file DVector3.cs.

◆ Equals()

bool ARLocation.DVector3.Equals ( DVector3  v,
double  e = 0.00005 
)

Equals the specified v and e.

Returns
The equals.
Parameters
vV.
eE.

Definition at line 77 of file DVector3.cs.

◆ Lerp()

static DVector3 ARLocation.DVector3.Lerp ( DVector3  a,
DVector3  b,
double  t 
)
static

Lerp the specified a, b and t.

Returns
The lerp.
Parameters
aThe alpha component.
bThe blue component.
tT.

Definition at line 144 of file DVector3.cs.

◆ Normalize()

void ARLocation.DVector3.Normalize ( )

Normalize this instance.

Definition at line 85 of file DVector3.cs.

◆ operator*() [1/2]

static DVector3 ARLocation.DVector3.operator* ( double  b,
DVector3  a 
)
static

Computes the product of a and b, yielding a new T:DVector3.

Parameters
aThe DVector3 to multiply.
bThe double to multiply.
Returns
The T:DVector3 that is the a * b.

Definition at line 171 of file DVector3.cs.

◆ operator*() [2/2]

static DVector3 ARLocation.DVector3.operator* ( DVector3  a,
double  b 
)
static

Computes the product of a and b, yielding a new T:DVector3.

Parameters
aThe DVector3 to multiply.
bThe double to multiply.
Returns
The T:DVector3 that is the a * b.

Definition at line 156 of file DVector3.cs.

◆ operator+()

static DVector3 ARLocation.DVector3.operator+ ( DVector3  a,
DVector3  b 
)
static

Adds a DVector3 to a DVector3, yielding a new T:DVector3.

Parameters
aThe first DVector3 to add.
bThe second DVector3 to add.
Returns
The T:DVector3 that is the sum of the values of a and b.

Definition at line 201 of file DVector3.cs.

◆ operator-()

static DVector3 ARLocation.DVector3.operator- ( DVector3  a,
DVector3  b 
)
static

Subtracts a DVector3 from a DVector3, yielding a new T:DVector3.

Parameters
aThe DVector3 to subtract from (the minuend).
bThe DVector3 to subtract (the subtrahend).
Returns
The T:DVector3 that is the a minus b.

Definition at line 216 of file DVector3.cs.

◆ operator/()

static DVector3 ARLocation.DVector3.operator/ ( DVector3  a,
double  b 
)
static

Computes the division of a and b, yielding a new T:DVector3.

Parameters
aThe DVector3 to divide (the divident).
bThe double to divide (the divisor).
Returns
The T:DVector3 that is the a / b.

Definition at line 186 of file DVector3.cs.

◆ Set()

void ARLocation.DVector3.Set ( double  xx = 0.0,
double  yy = 0.0,
double  zz = 0.0 
)

Set the specified x and y.

Parameters
xx
yy
zz

Definition at line 99 of file DVector3.cs.

◆ ToString()

override string ARLocation.DVector3.ToString ( )

Returns a T:System.String that represents the current T:DVector3.

Returns
A T:System.String that represents the current T:DVector3.

Definition at line 110 of file DVector3.cs.

◆ toVector3()

Vector3 ARLocation.DVector3.toVector3 ( )

Converts to a Vector3.

Returns
The vector2.

Definition at line 66 of file DVector3.cs.

Property Documentation

◆ magnitude

double ARLocation.DVector3.magnitude
get

Gets the magnitude of the vector.

The magnitude.

Definition at line 25 of file DVector3.cs.

◆ normalized

DVector3 ARLocation.DVector3.normalized
get

Gets the normalized version of this vector.

The normalized.

Definition at line 37 of file DVector3.cs.


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