C# Class Nexus.Vector3D

Show file Open project: tgjones/nexus Class Usage Examples

Public Properties

Property Type Description
X float

Public Methods

Method Description
Abs ( Vector3D vector ) : Vector3D
AbsDot ( Normal3D n1, Vector3D v2 ) : float
AbsDot ( Vector3D v1, Normal3D n2 ) : float
AbsDot ( Vector3D v1, Vector3D v2 ) : float
AngleBetween ( Vector3D vector1, Vector3D vector2 ) : float
CoordinateSystem ( Vector3D v1, Vector3D &v2, Vector3D &v3 ) : void
Cross ( Normal3D v1, Vector3D v2 ) : Vector3D
Cross ( Vector3D v1, Normal3D v2 ) : Vector3D
Cross ( Vector3D v1, Vector3D v2 ) : Vector3D
Cross ( Vector3D &v1, Vector3D &v2, Vector3D &result ) : void
Dot ( Normal3D n1, Vector3D v2 ) : float
Dot ( Vector3D v1, Normal3D n2 ) : float
Dot ( Vector3D v1, Vector3D v2 ) : float
Dot ( Vector3D &v1, Vector3D &v2, float &result ) : void
Length ( ) : float
LengthSquared ( ) : float
Normalize ( Vector3D v ) : Vector3D
Normalize ( ) : void
Parse ( string source ) : Vector3D
Reflect ( Vector3D vector, Vector3D normal ) : Vector3D
ToColorF ( ) : ColorF
ToString ( ) : string
Transform ( Vector3D position, Matrix3D matrix ) : Vector3D
TransformNormal ( Vector3D normal, Matrix3D matrix ) : Vector3D
Vector3D ( float value ) : System
Vector3D ( float x, float y, float z ) : System
operator ( ) : Vector3D
operator ( ) : bool
this ( int index ) : float

Private Methods

Method Description
ConvertToString ( string format, IFormatProvider provider ) : string

Method Details

Abs() public static method

public static Abs ( Vector3D vector ) : Vector3D
vector Vector3D
return Vector3D

AbsDot() public static method

public static AbsDot ( Normal3D n1, Vector3D v2 ) : float
n1 Normal3D
v2 Vector3D
return float

AbsDot() public static method

public static AbsDot ( Vector3D v1, Normal3D n2 ) : float
v1 Vector3D
n2 Normal3D
return float

AbsDot() public static method

public static AbsDot ( Vector3D v1, Vector3D v2 ) : float
v1 Vector3D
v2 Vector3D
return float

AngleBetween() public static method

public static AngleBetween ( Vector3D vector1, Vector3D vector2 ) : float
vector1 Vector3D
vector2 Vector3D
return float

CoordinateSystem() public static method

public static CoordinateSystem ( Vector3D v1, Vector3D &v2, Vector3D &v3 ) : void
v1 Vector3D
v2 Vector3D
v3 Vector3D
return void

Cross() public static method

public static Cross ( Normal3D v1, Vector3D v2 ) : Vector3D
v1 Normal3D
v2 Vector3D
return Vector3D

Cross() public static method

public static Cross ( Vector3D v1, Normal3D v2 ) : Vector3D
v1 Vector3D
v2 Normal3D
return Vector3D

Cross() public static method

public static Cross ( Vector3D v1, Vector3D v2 ) : Vector3D
v1 Vector3D
v2 Vector3D
return Vector3D

Cross() public static method

public static Cross ( Vector3D &v1, Vector3D &v2, Vector3D &result ) : void
v1 Vector3D
v2 Vector3D
result Vector3D
return void

Dot() public static method

public static Dot ( Normal3D n1, Vector3D v2 ) : float
n1 Normal3D
v2 Vector3D
return float

Dot() public static method

public static Dot ( Vector3D v1, Normal3D n2 ) : float
v1 Vector3D
n2 Normal3D
return float

Dot() public static method

public static Dot ( Vector3D v1, Vector3D v2 ) : float
v1 Vector3D
v2 Vector3D
return float

Dot() public static method

public static Dot ( Vector3D &v1, Vector3D &v2, float &result ) : void
v1 Vector3D
v2 Vector3D
result float
return void

Length() public method

public Length ( ) : float
return float

LengthSquared() public method

public LengthSquared ( ) : float
return float

Normalize() public static method

public static Normalize ( Vector3D v ) : Vector3D
v Vector3D
return Vector3D

Normalize() public method

public Normalize ( ) : void
return void

Parse() public static method

public static Parse ( string source ) : Vector3D
source string
return Vector3D

Reflect() public static method

public static Reflect ( Vector3D vector, Vector3D normal ) : Vector3D
vector Vector3D
normal Vector3D
return Vector3D

ToColorF() public method

public ToColorF ( ) : ColorF
return Nexus.Graphics.Colors.ColorF

ToString() public method

public ToString ( ) : string
return string

Transform() public static method

public static Transform ( Vector3D position, Matrix3D matrix ) : Vector3D
position Vector3D
matrix Matrix3D
return Vector3D

TransformNormal() public static method

public static TransformNormal ( Vector3D normal, Matrix3D matrix ) : Vector3D
normal Vector3D
matrix Matrix3D
return Vector3D

Vector3D() public method

public Vector3D ( float value ) : System
value float
return System

Vector3D() public method

public Vector3D ( float x, float y, float z ) : System
x float
y float
z float
return System

operator() public static method

public static operator ( ) : Vector3D
return Vector3D

operator() public static method

public static operator ( ) : bool
return bool

this() public method

public this ( int index ) : float
index int
return float

Property Details

X public property

public float X
return float