ICSV - Image Color Similarity Visualization
Vienna Technical University - Course 'Visualization 2'. Author: Stefan Spelitz (0925601)
XnaGeometry.Vector3 Struct Reference

XnaGeometry from http://www.technologicalutopia.com/sourcecode/xnageometry/ More...

Inheritance diagram for XnaGeometry.Vector3:

Public Member Functions

 Vector3 (double x, double y, double z)
 
 Vector3 (double value)
 
 Vector3 (Vector2 value, double z)
 
override bool Equals (object obj)
 
bool Equals (Vector3 other)
 
override int GetHashCode ()
 
double Length ()
 
double LengthSquared ()
 
void Normalize ()
 
override string ToString ()
 

Static Public Member Functions

static Vector3 Add (Vector3 value1, Vector3 value2)
 
static void Add (ref Vector3 value1, ref Vector3 value2, out Vector3 result)
 
static Vector3 Barycentric (Vector3 value1, Vector3 value2, Vector3 value3, double amount1, double amount2)
 
static void Barycentric (ref Vector3 value1, ref Vector3 value2, ref Vector3 value3, double amount1, double amount2, out Vector3 result)
 
static Vector3 CatmullRom (Vector3 value1, Vector3 value2, Vector3 value3, Vector3 value4, double amount)
 
static void CatmullRom (ref Vector3 value1, ref Vector3 value2, ref Vector3 value3, ref Vector3 value4, double amount, out Vector3 result)
 
static Vector3 Clamp (Vector3 value1, Vector3 min, Vector3 max)
 
static void Clamp (ref Vector3 value1, ref Vector3 min, ref Vector3 max, out Vector3 result)
 
static Vector3 Cross (Vector3 vector1, Vector3 vector2)
 
static void Cross (ref Vector3 vector1, ref Vector3 vector2, out Vector3 result)
 
static double Distance (Vector3 vector1, Vector3 vector2)
 
static void Distance (ref Vector3 value1, ref Vector3 value2, out double result)
 
static double DistanceSquared (Vector3 value1, Vector3 value2)
 
static void DistanceSquared (ref Vector3 value1, ref Vector3 value2, out double result)
 
static Vector3 Divide (Vector3 value1, Vector3 value2)
 
static Vector3 Divide (Vector3 value1, double value2)
 
static void Divide (ref Vector3 value1, double divisor, out Vector3 result)
 
static void Divide (ref Vector3 value1, ref Vector3 value2, out Vector3 result)
 
static double Dot (Vector3 vector1, Vector3 vector2)
 
static void Dot (ref Vector3 vector1, ref Vector3 vector2, out double result)
 
static Vector3 Hermite (Vector3 value1, Vector3 tangent1, Vector3 value2, Vector3 tangent2, double amount)
 
static void Hermite (ref Vector3 value1, ref Vector3 tangent1, ref Vector3 value2, ref Vector3 tangent2, double amount, out Vector3 result)
 
static Vector3 Lerp (Vector3 value1, Vector3 value2, double amount)
 
static void Lerp (ref Vector3 value1, ref Vector3 value2, double amount, out Vector3 result)
 
static Vector3 Max (Vector3 value1, Vector3 value2)
 
static void Max (ref Vector3 value1, ref Vector3 value2, out Vector3 result)
 
static Vector3 Min (Vector3 value1, Vector3 value2)
 
static void Min (ref Vector3 value1, ref Vector3 value2, out Vector3 result)
 
static Vector3 Multiply (Vector3 value1, Vector3 value2)
 
static Vector3 Multiply (Vector3 value1, double scaleFactor)
 
static void Multiply (ref Vector3 value1, double scaleFactor, out Vector3 result)
 
static void Multiply (ref Vector3 value1, ref Vector3 value2, out Vector3 result)
 
static Vector3 Negate (Vector3 value)
 
static void Negate (ref Vector3 value, out Vector3 result)
 
static Vector3 Normalize (Vector3 vector)
 
static void Normalize (ref Vector3 value, out Vector3 result)
 
static Vector3 Reflect (Vector3 vector, Vector3 normal)
 
static void Reflect (ref Vector3 vector, ref Vector3 normal, out Vector3 result)
 
static Vector3 SmoothStep (Vector3 value1, Vector3 value2, double amount)
 
static void SmoothStep (ref Vector3 value1, ref Vector3 value2, double amount, out Vector3 result)
 
static Vector3 Subtract (Vector3 value1, Vector3 value2)
 
static void Subtract (ref Vector3 value1, ref Vector3 value2, out Vector3 result)
 
static Vector3 Transform (Vector3 position, Matrix matrix)
 
static void Transform (ref Vector3 position, ref Matrix matrix, out Vector3 result)
 
static void Transform (Vector3[] sourceArray, ref Matrix matrix, Vector3[] destinationArray)
 
static Vector3 Transform (Vector3 vec, Quaternion quat)
 
static void Transform (ref Vector3 vec, ref Quaternion quat, out Vector3 result)
 Transforms a vector by a quaternion rotation. More...
 
static Vector3 TransformNormal (Vector3 normal, Matrix matrix)
 
static void TransformNormal (ref Vector3 normal, ref Matrix matrix, out Vector3 result)
 
static bool operator== (Vector3 value1, Vector3 value2)
 
static bool operator!= (Vector3 value1, Vector3 value2)
 
static Vector3 operator+ (Vector3 value1, Vector3 value2)
 
static Vector3 operator- (Vector3 value)
 
static Vector3 operator- (Vector3 value1, Vector3 value2)
 
static Vector3 operator* (Vector3 value1, Vector3 value2)
 
static Vector3 operator* (Vector3 value, double scaleFactor)
 
static Vector3 operator* (double scaleFactor, Vector3 value)
 
static Vector3 operator/ (Vector3 value1, Vector3 value2)
 
static Vector3 operator/ (Vector3 value, double divider)
 

Public Attributes

double X
 
double Y
 
double Z
 

Properties

static Vector3 Zero [get]
 
static Vector3 One [get]
 
static Vector3 UnitX [get]
 
static Vector3 UnitY [get]
 
static Vector3 UnitZ [get]
 
static Vector3 Up [get]
 
static Vector3 Down [get]
 
static Vector3 Right [get]
 
static Vector3 Left [get]
 
static Vector3 Forward [get]
 
static Vector3 Backward [get]
 

Detailed Description

Constructor & Destructor Documentation

XnaGeometry.Vector3.Vector3 ( double  x,
double  y,
double  z 
)
XnaGeometry.Vector3.Vector3 ( double  value)
XnaGeometry.Vector3.Vector3 ( Vector2  value,
double  z 
)

Member Function Documentation

static Vector3 XnaGeometry.Vector3.Add ( Vector3  value1,
Vector3  value2 
)
static
static void XnaGeometry.Vector3.Add ( ref Vector3  value1,
ref Vector3  value2,
out Vector3  result 
)
static
static Vector3 XnaGeometry.Vector3.Barycentric ( Vector3  value1,
Vector3  value2,
Vector3  value3,
double  amount1,
double  amount2 
)
static
static void XnaGeometry.Vector3.Barycentric ( ref Vector3  value1,
ref Vector3  value2,
ref Vector3  value3,
double  amount1,
double  amount2,
out Vector3  result 
)
static
static Vector3 XnaGeometry.Vector3.CatmullRom ( Vector3  value1,
Vector3  value2,
Vector3  value3,
Vector3  value4,
double  amount 
)
static
static void XnaGeometry.Vector3.CatmullRom ( ref Vector3  value1,
ref Vector3  value2,
ref Vector3  value3,
ref Vector3  value4,
double  amount,
out Vector3  result 
)
static
static Vector3 XnaGeometry.Vector3.Clamp ( Vector3  value1,
Vector3  min,
Vector3  max 
)
static
static void XnaGeometry.Vector3.Clamp ( ref Vector3  value1,
ref Vector3  min,
ref Vector3  max,
out Vector3  result 
)
static
static Vector3 XnaGeometry.Vector3.Cross ( Vector3  vector1,
Vector3  vector2 
)
static
static void XnaGeometry.Vector3.Cross ( ref Vector3  vector1,
ref Vector3  vector2,
out Vector3  result 
)
static
static double XnaGeometry.Vector3.Distance ( Vector3  vector1,
Vector3  vector2 
)
static
static void XnaGeometry.Vector3.Distance ( ref Vector3  value1,
ref Vector3  value2,
out double  result 
)
static
static double XnaGeometry.Vector3.DistanceSquared ( Vector3  value1,
Vector3  value2 
)
static
static void XnaGeometry.Vector3.DistanceSquared ( ref Vector3  value1,
ref Vector3  value2,
out double  result 
)
static
static Vector3 XnaGeometry.Vector3.Divide ( Vector3  value1,
Vector3  value2 
)
static
static Vector3 XnaGeometry.Vector3.Divide ( Vector3  value1,
double  value2 
)
static
static void XnaGeometry.Vector3.Divide ( ref Vector3  value1,
double  divisor,
out Vector3  result 
)
static
static void XnaGeometry.Vector3.Divide ( ref Vector3  value1,
ref Vector3  value2,
out Vector3  result 
)
static
static double XnaGeometry.Vector3.Dot ( Vector3  vector1,
Vector3  vector2 
)
static
static void XnaGeometry.Vector3.Dot ( ref Vector3  vector1,
ref Vector3  vector2,
out double  result 
)
static
override bool XnaGeometry.Vector3.Equals ( object  obj)
bool XnaGeometry.Vector3.Equals ( Vector3  other)
override int XnaGeometry.Vector3.GetHashCode ( )
static Vector3 XnaGeometry.Vector3.Hermite ( Vector3  value1,
Vector3  tangent1,
Vector3  value2,
Vector3  tangent2,
double  amount 
)
static
static void XnaGeometry.Vector3.Hermite ( ref Vector3  value1,
ref Vector3  tangent1,
ref Vector3  value2,
ref Vector3  tangent2,
double  amount,
out Vector3  result 
)
static
double XnaGeometry.Vector3.Length ( )
double XnaGeometry.Vector3.LengthSquared ( )
static Vector3 XnaGeometry.Vector3.Lerp ( Vector3  value1,
Vector3  value2,
double  amount 
)
static
static void XnaGeometry.Vector3.Lerp ( ref Vector3  value1,
ref Vector3  value2,
double  amount,
out Vector3  result 
)
static
static Vector3 XnaGeometry.Vector3.Max ( Vector3  value1,
Vector3  value2 
)
static
static void XnaGeometry.Vector3.Max ( ref Vector3  value1,
ref Vector3  value2,
out Vector3  result 
)
static
static Vector3 XnaGeometry.Vector3.Min ( Vector3  value1,
Vector3  value2 
)
static
static void XnaGeometry.Vector3.Min ( ref Vector3  value1,
ref Vector3  value2,
out Vector3  result 
)
static
static Vector3 XnaGeometry.Vector3.Multiply ( Vector3  value1,
Vector3  value2 
)
static
static Vector3 XnaGeometry.Vector3.Multiply ( Vector3  value1,
double  scaleFactor 
)
static
static void XnaGeometry.Vector3.Multiply ( ref Vector3  value1,
double  scaleFactor,
out Vector3  result 
)
static
static void XnaGeometry.Vector3.Multiply ( ref Vector3  value1,
ref Vector3  value2,
out Vector3  result 
)
static
static Vector3 XnaGeometry.Vector3.Negate ( Vector3  value)
static
static void XnaGeometry.Vector3.Negate ( ref Vector3  value,
out Vector3  result 
)
static
void XnaGeometry.Vector3.Normalize ( )
static Vector3 XnaGeometry.Vector3.Normalize ( Vector3  vector)
static
static void XnaGeometry.Vector3.Normalize ( ref Vector3  value,
out Vector3  result 
)
static
static bool XnaGeometry.Vector3.operator!= ( Vector3  value1,
Vector3  value2 
)
static
static Vector3 XnaGeometry.Vector3.operator* ( Vector3  value1,
Vector3  value2 
)
static
static Vector3 XnaGeometry.Vector3.operator* ( Vector3  value,
double  scaleFactor 
)
static
static Vector3 XnaGeometry.Vector3.operator* ( double  scaleFactor,
Vector3  value 
)
static
static Vector3 XnaGeometry.Vector3.operator+ ( Vector3  value1,
Vector3  value2 
)
static
static Vector3 XnaGeometry.Vector3.operator- ( Vector3  value)
static
static Vector3 XnaGeometry.Vector3.operator- ( Vector3  value1,
Vector3  value2 
)
static
static Vector3 XnaGeometry.Vector3.operator/ ( Vector3  value1,
Vector3  value2 
)
static
static Vector3 XnaGeometry.Vector3.operator/ ( Vector3  value,
double  divider 
)
static
static bool XnaGeometry.Vector3.operator== ( Vector3  value1,
Vector3  value2 
)
static
static Vector3 XnaGeometry.Vector3.Reflect ( Vector3  vector,
Vector3  normal 
)
static
static void XnaGeometry.Vector3.Reflect ( ref Vector3  vector,
ref Vector3  normal,
out Vector3  result 
)
static
static Vector3 XnaGeometry.Vector3.SmoothStep ( Vector3  value1,
Vector3  value2,
double  amount 
)
static
static void XnaGeometry.Vector3.SmoothStep ( ref Vector3  value1,
ref Vector3  value2,
double  amount,
out Vector3  result 
)
static
static Vector3 XnaGeometry.Vector3.Subtract ( Vector3  value1,
Vector3  value2 
)
static
static void XnaGeometry.Vector3.Subtract ( ref Vector3  value1,
ref Vector3  value2,
out Vector3  result 
)
static
override string XnaGeometry.Vector3.ToString ( )
static Vector3 XnaGeometry.Vector3.Transform ( Vector3  position,
Matrix  matrix 
)
static
static void XnaGeometry.Vector3.Transform ( ref Vector3  position,
ref Matrix  matrix,
out Vector3  result 
)
static
static void XnaGeometry.Vector3.Transform ( Vector3[]  sourceArray,
ref Matrix  matrix,
Vector3[]  destinationArray 
)
static
static Vector3 XnaGeometry.Vector3.Transform ( Vector3  vec,
Quaternion  quat 
)
static

Transforms a vector by a quaternion rotation.

Parameters
vecThe vector to transform.
quatThe quaternion to rotate the vector by.
Returns
The result of the operation.
static void XnaGeometry.Vector3.Transform ( ref Vector3  vec,
ref Quaternion  quat,
out Vector3  result 
)
static

Transforms a vector by a quaternion rotation.

Parameters
vecThe vector to transform.
quatThe quaternion to rotate the vector by.
resultThe result of the operation.

Transforms a vector by a quaternion rotation.

Parameters
vecThe vector to transform.
quatThe quaternion to rotate the vector by.
resultThe result of the operation.
static Vector3 XnaGeometry.Vector3.TransformNormal ( Vector3  normal,
Matrix  matrix 
)
static
static void XnaGeometry.Vector3.TransformNormal ( ref Vector3  normal,
ref Matrix  matrix,
out Vector3  result 
)
static

Member Data Documentation

double XnaGeometry.Vector3.X
double XnaGeometry.Vector3.Y
double XnaGeometry.Vector3.Z

Property Documentation

Vector3 XnaGeometry.Vector3.Backward
staticget
Vector3 XnaGeometry.Vector3.Down
staticget
Vector3 XnaGeometry.Vector3.Forward
staticget
Vector3 XnaGeometry.Vector3.Left
staticget
Vector3 XnaGeometry.Vector3.One
staticget
Vector3 XnaGeometry.Vector3.Right
staticget
Vector3 XnaGeometry.Vector3.UnitX
staticget
Vector3 XnaGeometry.Vector3.UnitY
staticget
Vector3 XnaGeometry.Vector3.UnitZ
staticget
Vector3 XnaGeometry.Vector3.Up
staticget
Vector3 XnaGeometry.Vector3.Zero
staticget