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

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

Inheritance diagram for XnaGeometry.Vector2:

Public Member Functions

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

Static Public Member Functions

static Vector2 Add (Vector2 value1, Vector2 value2)
 
static void Add (ref Vector2 value1, ref Vector2 value2, out Vector2 result)
 
static Vector2 Barycentric (Vector2 value1, Vector2 value2, Vector2 value3, double amount1, double amount2)
 
static void Barycentric (ref Vector2 value1, ref Vector2 value2, ref Vector2 value3, double amount1, double amount2, out Vector2 result)
 
static Vector2 CatmullRom (Vector2 value1, Vector2 value2, Vector2 value3, Vector2 value4, double amount)
 
static void CatmullRom (ref Vector2 value1, ref Vector2 value2, ref Vector2 value3, ref Vector2 value4, double amount, out Vector2 result)
 
static Vector2 Clamp (Vector2 value1, Vector2 min, Vector2 max)
 
static void Clamp (ref Vector2 value1, ref Vector2 min, ref Vector2 max, out Vector2 result)
 
static double Distance (Vector2 value1, Vector2 value2)
 
static void Distance (ref Vector2 value1, ref Vector2 value2, out double result)
 
static double DistanceSquared (Vector2 value1, Vector2 value2)
 
static void DistanceSquared (ref Vector2 value1, ref Vector2 value2, out double result)
 
static Vector2 Divide (Vector2 value1, Vector2 value2)
 
static void Divide (ref Vector2 value1, ref Vector2 value2, out Vector2 result)
 
static Vector2 Divide (Vector2 value1, double divider)
 
static void Divide (ref Vector2 value1, double divider, out Vector2 result)
 
static double Dot (Vector2 value1, Vector2 value2)
 
static void Dot (ref Vector2 value1, ref Vector2 value2, out double result)
 
static Vector2 Reflect (Vector2 vector, Vector2 normal)
 
static void Reflect (ref Vector2 vector, ref Vector2 normal, out Vector2 result)
 
static Vector2 Hermite (Vector2 value1, Vector2 tangent1, Vector2 value2, Vector2 tangent2, double amount)
 
static void Hermite (ref Vector2 value1, ref Vector2 tangent1, ref Vector2 value2, ref Vector2 tangent2, double amount, out Vector2 result)
 
static Vector2 Lerp (Vector2 value1, Vector2 value2, double amount)
 
static void Lerp (ref Vector2 value1, ref Vector2 value2, double amount, out Vector2 result)
 
static Vector2 Max (Vector2 value1, Vector2 value2)
 
static void Max (ref Vector2 value1, ref Vector2 value2, out Vector2 result)
 
static Vector2 Min (Vector2 value1, Vector2 value2)
 
static void Min (ref Vector2 value1, ref Vector2 value2, out Vector2 result)
 
static Vector2 Multiply (Vector2 value1, Vector2 value2)
 
static Vector2 Multiply (Vector2 value1, double scaleFactor)
 
static void Multiply (ref Vector2 value1, double scaleFactor, out Vector2 result)
 
static void Multiply (ref Vector2 value1, ref Vector2 value2, out Vector2 result)
 
static Vector2 Negate (Vector2 value)
 
static void Negate (ref Vector2 value, out Vector2 result)
 
static Vector2 Normalize (Vector2 value)
 
static void Normalize (ref Vector2 value, out Vector2 result)
 
static Vector2 SmoothStep (Vector2 value1, Vector2 value2, double amount)
 
static void SmoothStep (ref Vector2 value1, ref Vector2 value2, double amount, out Vector2 result)
 
static Vector2 Subtract (Vector2 value1, Vector2 value2)
 
static void Subtract (ref Vector2 value1, ref Vector2 value2, out Vector2 result)
 
static Vector2 Transform (Vector2 position, Matrix matrix)
 
static void Transform (ref Vector2 position, ref Matrix matrix, out Vector2 result)
 
static Vector2 Transform (Vector2 position, Quaternion quat)
 
static void Transform (ref Vector2 position, ref Quaternion quat, out Vector2 result)
 
static void Transform (Vector2[] sourceArray, ref Matrix matrix, Vector2[] destinationArray)
 
static void Transform (Vector2[] sourceArray, int sourceIndex, ref Matrix matrix, Vector2[] destinationArray, int destinationIndex, int length)
 
static Vector2 TransformNormal (Vector2 normal, Matrix matrix)
 
static void TransformNormal (ref Vector2 normal, ref Matrix matrix, out Vector2 result)
 
static Vector2 operator- (Vector2 value)
 
static bool operator== (Vector2 value1, Vector2 value2)
 
static bool operator!= (Vector2 value1, Vector2 value2)
 
static Vector2 operator+ (Vector2 value1, Vector2 value2)
 
static Vector2 operator- (Vector2 value1, Vector2 value2)
 
static Vector2 operator* (Vector2 value1, Vector2 value2)
 
static Vector2 operator* (Vector2 value, double scaleFactor)
 
static Vector2 operator* (double scaleFactor, Vector2 value)
 
static Vector2 operator/ (Vector2 value1, Vector2 value2)
 
static Vector2 operator/ (Vector2 value1, double divider)
 

Public Attributes

double X
 
double Y
 

Properties

static Vector2 Zero [get]
 
static Vector2 One [get]
 
static Vector2 UnitX [get]
 
static Vector2 UnitY [get]
 

Detailed Description

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

double XnaGeometry.Vector2.X
double XnaGeometry.Vector2.Y

Property Documentation

Vector2 XnaGeometry.Vector2.One
staticget
Vector2 XnaGeometry.Vector2.UnitX
staticget
Vector2 XnaGeometry.Vector2.UnitY
staticget
Vector2 XnaGeometry.Vector2.Zero
staticget