OmegaEngine API  1.0.3
Public Member Functions | Static Public Member Functions | Properties | List of all members
OmegaEngine.Values.DoubleVector3 Struct Reference

Defines a three component vector with double accuracy. More...

Inheritance diagram for OmegaEngine.Values.DoubleVector3:

Public Member Functions

 DoubleVector3 (double x, double y, double z)
 Creates a new vector. More...
 
DoubleVector3 Subtract (DoubleVector3 vector)
 Subtracts vector from this and returns the result More...
 
Vector3 ApplyOffset (DoubleVector3 offset)
 Returns a single-precision standard Vector3 after subtracting an offset value More...
 
double DotProduct (DoubleVector3 vector)
 Calculates the dot product of this vector and vector . More...
 
double Length ()
 Calculates the length of the vector. More...
 
Vector2 Flatten ()
 Maps X to X and Z to -Y. Drops Y. More...
 
override string ToString ()
 
bool Equals (DoubleVector3 other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static DoubleVector3 operator+ (DoubleVector3 vector1, Vector3 vector2)
 Add DoubleVector3 to Vector3 More...
 
static DoubleVector3 operator+ (Vector3 vector1, DoubleVector3 vector2)
 Add Vector3 to DoubleVector3 More...
 
static DoubleVector3 operator - (DoubleVector3 vector1, Vector3 vector2)
 Subtract DoubleVector3 from Vector3 More...
 
static DoubleVector3 operator - (Vector3 vector1, DoubleVector3 vector2)
 Subtract DoubleVector3 from Vector3 More...
 
static DoubleVector3 operator+ (DoubleVector3 vector1, DoubleVector3 vector2)
 Add DoubleVector3 to DoubleVector3 More...
 
static DoubleVector3 operator - (DoubleVector3 vector1, DoubleVector3 vector2)
 Subtract DoubleVector3 from DoubleVector3 More...
 
static DoubleVector3 operator * (DoubleVector3 vector, double scalar)
 Multiply DoubleVector3 with double More...
 
static DoubleVector3 operator * (double scalar, DoubleVector3 vector)
 Multiply DoubleVector3 with double More...
 
static DoubleVector3 operator * (float scalar, DoubleVector3 vector)
 Multiply DoubleVector3 with float More...
 
static DoubleVector3 operator * (DoubleVector3 vector, float scalar)
 Multiply DoubleVector3 with float More...
 
static operator DoubleVector3 (Vector3 vector)
 Convert Vector3 into DoubleVector3 More...
 
static operator Vector3 (DoubleVector3 vector)
 Convert DoubleVector3 into Vector3 More...
 
static bool operator== (DoubleVector3 left, DoubleVector3 right)
 
static bool operator != (DoubleVector3 left, DoubleVector3 right)
 

Properties

double X [get, set]
 Gets or sets the X component of the vector. More...
 
double Y [get, set]
 Gets or sets the Y component of the vector. More...
 
double Z [get, set]
 Gets or sets the Z component of the vector. More...
 

Detailed Description

Defines a three component vector with double accuracy.

Constructor & Destructor Documentation

◆ DoubleVector3()

OmegaEngine.Values.DoubleVector3.DoubleVector3 ( double  x,
double  y,
double  z 
)
inline

Creates a new vector.

Parameters
xThe X component.
yThe Y component.
zThe Z component.

Member Function Documentation

◆ ApplyOffset()

Vector3 OmegaEngine.Values.DoubleVector3.ApplyOffset ( DoubleVector3  offset)

Returns a single-precision standard Vector3 after subtracting an offset value

Parameters
offsetThis value is subtracting from the double-precision data before it is casted to single-precision
Returns
The relative value

◆ DotProduct()

double OmegaEngine.Values.DoubleVector3.DotProduct ( DoubleVector3  vector)

Calculates the dot product of this vector and vector .

Parameters
vectorThe second vector to calculate the dot product with.
Returns
this x vector

◆ Flatten()

Vector2 OmegaEngine.Values.DoubleVector3.Flatten ( )

Maps X to X and Z to -Y. Drops Y.

◆ Length()

double OmegaEngine.Values.DoubleVector3.Length ( )

Calculates the length of the vector.

◆ operator *() [1/4]

static DoubleVector3 OmegaEngine.Values.DoubleVector3.operator * ( DoubleVector3  vector,
double  scalar 
)
static

Multiply DoubleVector3 with double

◆ operator *() [2/4]

static DoubleVector3 OmegaEngine.Values.DoubleVector3.operator * ( double  scalar,
DoubleVector3  vector 
)
static

Multiply DoubleVector3 with double

◆ operator *() [3/4]

static DoubleVector3 OmegaEngine.Values.DoubleVector3.operator * ( float  scalar,
DoubleVector3  vector 
)
static

Multiply DoubleVector3 with float

◆ operator *() [4/4]

static DoubleVector3 OmegaEngine.Values.DoubleVector3.operator * ( DoubleVector3  vector,
float  scalar 
)
static

Multiply DoubleVector3 with float

◆ operator -() [1/3]

static DoubleVector3 OmegaEngine.Values.DoubleVector3.operator - ( DoubleVector3  vector1,
Vector3  vector2 
)
static

Subtract DoubleVector3 from Vector3

◆ operator -() [2/3]

static DoubleVector3 OmegaEngine.Values.DoubleVector3.operator - ( Vector3  vector1,
DoubleVector3  vector2 
)
static

Subtract DoubleVector3 from Vector3

◆ operator -() [3/3]

static DoubleVector3 OmegaEngine.Values.DoubleVector3.operator - ( DoubleVector3  vector1,
DoubleVector3  vector2 
)
static

◆ operator DoubleVector3()

static OmegaEngine.Values.DoubleVector3.operator DoubleVector3 ( Vector3  vector)
explicitstatic

Convert Vector3 into DoubleVector3

◆ operator Vector3()

static OmegaEngine.Values.DoubleVector3.operator Vector3 ( DoubleVector3  vector)
explicitstatic

Convert DoubleVector3 into Vector3

◆ operator+() [1/3]

static DoubleVector3 OmegaEngine.Values.DoubleVector3.operator+ ( DoubleVector3  vector1,
Vector3  vector2 
)
static

Add DoubleVector3 to Vector3

◆ operator+() [2/3]

static DoubleVector3 OmegaEngine.Values.DoubleVector3.operator+ ( Vector3  vector1,
DoubleVector3  vector2 
)
static

Add Vector3 to DoubleVector3

◆ operator+() [3/3]

static DoubleVector3 OmegaEngine.Values.DoubleVector3.operator+ ( DoubleVector3  vector1,
DoubleVector3  vector2 
)
static

◆ Subtract()

DoubleVector3 OmegaEngine.Values.DoubleVector3.Subtract ( DoubleVector3  vector)

Subtracts vector from this and returns the result

Property Documentation

◆ X

double OmegaEngine.Values.DoubleVector3.X
getset

Gets or sets the X component of the vector.

◆ Y

double OmegaEngine.Values.DoubleVector3.Y
getset

Gets or sets the Y component of the vector.

◆ Z

double OmegaEngine.Values.DoubleVector3.Z
getset

Gets or sets the Z component of the vector.


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