Jypeli 4
The simple game programming library
Julkiset jäsenfunktiot | Staattiset julkiset jäsenfunktiot | Julkiset attribuutit | Staattiset julkiset attribuutit | Ominaisuudet
Vector3D tietuereferenssi

A Vector with 3 dimensions. Lisää...

Luokan Vector3D luokkakaavio
IVector< V > IAdvanceValueType

Lista kaikista jäsenistä.

Julkiset jäsenfunktiot

 Vector3D (Scalar X, Scalar Y, Scalar Z)
 Creates a New Vector3D Instance on the Stack.
 Vector3D (Scalar[] vals)
 Vector3D (Scalar[] vals, int index)
Scalar[] ToArray ()
 Copies the elements of the IAdvanceValueType to a new array of Scalar .
void CopyFrom (Scalar[] array, int index)
 Copies all the elements, up to the Length of the IAdvanceValueType, of the specified one-dimensional Array to the IAdvanceValueType.
void CopyTo (Scalar[] array, int index)
 Copies all the elements of the IAdvanceValueType to the specified one-dimensional Array of Scalar.
string ToString (string format)
 turns the object into a string representation of itself with a special format for each Scaler in it.
override string ToString ()
override int GetHashCode ()
 Provides a unique hash code based on the member variables of this class. This should be done because the equality operators (==, !=) have been overriden by this class. The standard implementation is a simple XOR operation between all local member variables.
override bool Equals (object obj)
 Compares this Vector to another object. This should be done because the equality operators (==, !=) have been overriden by this class.
bool Equals (Vector3D other)

Staattiset julkiset jäsenfunktiot

static void Copy (ref Vector3D vector, Scalar[] destArray)
static void Copy (ref Vector3D vector, Scalar[] destArray, int index)
static void Copy (Scalar[] sourceArray, out Vector3D result)
static void Copy (Scalar[] sourceArray, int index, out Vector3D result)
static void Copy (ref Vector4D source, out Vector3D dest)
static void Copy (ref Vector2D source, ref Vector3D dest)
static Vector3D Clamp (Vector3D value, Vector3D min, Vector3D max)
static void Clamp (ref Vector3D value, ref Vector3D min, ref Vector3D max, out Vector3D result)
static Vector3D Lerp (Vector3D left, Vector3D right, Scalar amount)
static void Lerp (ref Vector3D left, ref Vector3D right, ref Scalar amount, out Vector3D result)
static Vector3D Lerp (Vector3D left, Vector3D right, Vector3D amount)
static void Lerp (ref Vector3D left, ref Vector3D right, ref Vector3D amount, out Vector3D result)
static Scalar Distance (Vector3D left, Vector3D right)
static void Distance (ref Vector3D left, ref Vector3D right, out Scalar result)
static Scalar DistanceSq (Vector3D left, Vector3D right)
static void DistanceSq (ref Vector3D left, ref Vector3D right, out Scalar result)
static Vector3D Add (Vector3D left, Vector3D right)
 Adds 2 Vectors2Ds.
static void Add (ref Vector3D left, ref Vector3D right, out Vector3D result)
static Vector3D Add (Vector2D left, Vector3D right)
static void Add (ref Vector2D left, ref Vector3D right, out Vector3D result)
static Vector3D Add (Vector3D left, Vector2D right)
static void Add (ref Vector3D left, ref Vector2D right, out Vector3D result)
static Vector3D Subtract (Vector3D left, Vector3D right)
 Subtracts 2 Vector3Ds.
static void Subtract (ref Vector3D left, ref Vector3D right, out Vector3D result)
static Vector3D Subtract (Vector2D left, Vector3D right)
static void Subtract (ref Vector2D left, ref Vector3D right, out Vector3D result)
static Vector3D Subtract (Vector3D left, Vector2D right)
static void Subtract (ref Vector3D left, ref Vector2D right, out Vector3D result)
static Vector3D Multiply (Vector3D source, Scalar scalar)
 Does Scaler Multiplication on a Vector3D.
static void Multiply (ref Vector3D source, ref Scalar scalar, out Vector3D result)
static Vector3D Multiply (Scalar scalar, Vector3D source)
 Does Scaler Multiplication on a Vector3D.
static void Multiply (ref Scalar scalar, ref Vector3D source, out Vector3D result)
static Vector3D Transform (Matrix3x3 matrix, Vector3D vector)
 matrix * vector [3x3 * 3x1 = 3x1]
static void Transform (ref Matrix3x3 matrix, ref Vector3D vector, out Vector3D result)
static Vector3D Transform (Vector3D vector, Matrix3x3 matrix)
 vector * matrix [1x3 * 3x3 = 1x3]
static void Transform (ref Vector3D vector, ref Matrix3x3 matrix, out Vector3D result)
static Vector3D Transform (Matrix4x4 matrix, Vector3D vector)
 Transforms the given 3-D vector by the matrix, projecting the result back into w = 1. This means that the initial w is considered to be 1.0, and then all the tree elements of the resulting 3-D vector are divided by the resulting w.
static void Transform (ref Matrix4x4 matrix, ref Vector3D vector, out Vector3D result)
static Vector3D Multiply (Quaternion quat, Vector3D vector)
static void Multiply (ref Quaternion quat, ref Vector3D vector, out Vector3D result)
static Scalar Dot (Vector3D left, Vector3D right)
 Does a Dot Operation Also know as an Inner Product.
static void Dot (ref Vector3D left, ref Vector3D right, out Scalar result)
static Vector3D Cross (Vector3D left, Vector3D right)
 Does a Cross Operation Also know as an Outer Product.
static void Cross (ref Vector3D left, ref Vector3D right, out Vector3D result)
static Scalar GetMagnitudeSq (Vector3D source)
 Gets the Squared Magnitude of the Vector3D that is passed.
static void GetMagnitudeSq (ref Vector3D source, out Scalar result)
static Scalar GetMagnitude (Vector3D source)
 Gets the Magnitude of the Vector3D that is passed.
static void GetMagnitude (ref Vector3D source, out Scalar result)
static Vector3D SetMagnitude (Vector3D source, Scalar magnitude)
 Sets the Magnitude of a Vector3D.
static void SetMagnitude (ref Vector3D source, ref Scalar magnitude, out Vector3D result)
static Vector3D Normalize (Vector3D source)
 This returns the Normalized Vector3D that is passed. This is also known as a Unit Vector.
static void Normalize (ref Vector3D source, out Vector3D result)
static void Normalize (ref Vector3D source)
static Vector3D Negate (Vector3D source)
 Negates a Vector3D.
static void Negate (ref Vector3D source)
static void Negate (ref Vector3D source, out Vector3D result)
static Vector3D Project (Vector3D left, Vector3D right)
 Thie Projects the left Vector3D onto the Right Vector3D.
static void Project (ref Vector3D left, ref Vector3D right, out Vector3D result)
static Vector3D Hermite (Vector3D value1, Vector3D tangent1, Vector3D value2, Vector3D tangent2, Scalar amount)
static void Hermite (ref Vector3D value1, ref Vector3D tangent1, ref Vector3D value2, ref Vector3D tangent2, Scalar amount, out Vector3D result)
static Vector3D CatmullRom (Vector3D value1, Vector3D value2, Vector3D value3, Vector3D value4, Scalar amount)
static void CatmullRom (ref Vector3D value1, ref Vector3D value2, ref Vector3D value3, ref Vector3D value4, Scalar amount, out Vector3D result)
static Vector3D Max (Vector3D value1, Vector3D value2)
static void Max (ref Vector3D value1, ref Vector3D value2, out Vector3D result)
static Vector3D Min (Vector3D value1, Vector3D value2)
static void Min (ref Vector3D value1, ref Vector3D value2, out Vector3D result)
static Vector3D operator+ (Vector3D left, Vector3D right)
 Adds 2 Vectors2Ds.
static Vector3D operator+ (Vector2D left, Vector3D right)
static Vector3D operator+ (Vector3D left, Vector2D right)
static Vector3D operator- (Vector3D left, Vector3D right)
 Subtracts 2 Vector3Ds.
static Vector3D operator- (Vector2D left, Vector3D right)
static Vector3D operator- (Vector3D left, Vector2D right)
static Vector3D operator* (Vector3D source, Scalar scalar)
 Does Scaler Multiplication on a Vector3D.
static Vector3D operator* (Scalar scalar, Vector3D source)
 Does Scaler Multiplication on a Vector3D.
static Scalar operator* (Vector3D left, Vector3D right)
 Does a Dot Operation Also know as an Inner Product.
static Vector3D operator* (Matrix4x4 matrix, Vector3D vector)
 Transforms the given 3-D vector by the matrix, projecting the result back into w = 1. This means that the initial w is considered to be 1.0, and then all the tree elements of the resulting 3-D vector are divided by the resulting w.
static Vector3D operator* (Matrix3x3 matrix, Vector3D vector)
 matrix * vector [3x3 * 3x1 = 3x1]
static Vector3D operator* (Quaternion quat, Vector3D vector)
static Vector3D operator* (Vector3D vector, Matrix3x3 matrix)
 vector * matrix [1x3 * 3x3 = 1x3]
static Vector3D operator- (Vector3D source)
 Negates a Vector3D.
static Vector3D operator^ (Vector3D left, Vector3D right)
 Does a "2D" Cross Product also know as an Outer Product.
static bool operator== (Vector3D left, Vector3D right)
 Specifies whether the Vector3Ds contain the same coordinates.
static bool operator!= (Vector3D left, Vector3D right)
 Specifies whether the Vector3Ds do not contain the same coordinates.
static operator Vector3D (Vector2D source)
static operator Vector3D (Vector4D source)
static bool TryParse (string s, out Vector3D result)
static Vector3D Parse (string s)
static bool Equals (Vector3D left, Vector3D right)
static bool Equals (ref Vector3D left, ref Vector3D right)

Julkiset attribuutit

const int Count = 3
 The number of Scalar values in the class.
const int Size = sizeof(Scalar) * Count
 The Size of the class in bytes;.
Scalar X
 This is the X value.
Scalar Y
 This is the Y value.
Scalar Z
 This is the Z value.

Staattiset julkiset attribuutit

static readonly Vector3D One = new Vector3D(1, 1, 1)
 Vector3D(1,1,1)
static readonly Vector3D Zero = new Vector3D()
 Vector3D(0,0,0)
static readonly Vector3D XAxis = new Vector3D(1, 0, 0)
 Vector3D(1,0,0)
static readonly Vector3D YAxis = new Vector3D(0, 1, 0)
 Vector3D(0,1,0)
static readonly Vector3D ZAxis = new Vector3D(0, 0, 1)
 Vector3D(0,0,1)

Ominaisuudet

Scalar Magnitude [get, set]
 Gets or Sets the Magnitude (Length) of the Vector3D.
Scalar MagnitudeSq [get]
 Gets the Squared Magnitude of the Vector3D.
Vector3D Normalized [get]
 Gets the Normalized Vector3D. (Unit Vector)
int IAdvanceValueType. Count [get]
 The Number of Variables accesable though the indexer.

Yksityiskohtainen selite

A Vector with 3 dimensions.


Rakentajien & purkajien dokumentaatio

Vector3D ( Scalar  X,
Scalar  Y,
Scalar  Z 
) [inline]

Creates a New Vector3D Instance on the Stack.

Parametrit:
XThe X value.
YThe Y value.
ZThe Z value.

Jäsenfunktioiden dokumentaatio

static Vector3D Add ( Vector3D  left,
Vector3D  right 
) [inline, static]

Adds 2 Vectors2Ds.

Parametrit:
leftThe left Vector3D operand.
rightThe right Vector3D operand.
Palauttaa:
The Sum of the 2 Vector3Ds.
void CopyFrom ( Scalar[]  array,
int  index 
) [inline]

Copies all the elements, up to the Length of the IAdvanceValueType, of the specified one-dimensional Array to the IAdvanceValueType.

Parametrit:
arrayThe one-dimensional Array that is the source of the elements copied to the IAdvanceValueType.
indexA 32-bit integer that represents the index in array at which copying begins.

Toteuttaa luokan IAdvanceValueType.

void CopyTo ( Scalar[]  array,
int  index 
) [inline]

Copies all the elements of the IAdvanceValueType to the specified one-dimensional Array of Scalar.

Parametrit:
arrayThe one-dimensional Array that is the destination of the elements copied from the IAdvanceValueType.
indexA 32-bit integer that represents the index in array at which copying begins.

Toteuttaa luokan IAdvanceValueType.

static Vector3D Cross ( Vector3D  left,
Vector3D  right 
) [inline, static]

Does a Cross Operation Also know as an Outer Product.

Parametrit:
leftThe left Vector3D operand.
rightThe right Vector3D operand.
Palauttaa:
The Cross Product.
static Scalar Dot ( Vector3D  left,
Vector3D  right 
) [inline, static]

Does a Dot Operation Also know as an Inner Product.

Parametrit:
leftThe left Vector3D operand.
rightThe right Vector3D operand.
Palauttaa:
The Dot Product (Inner Product).
override bool Equals ( object  obj) [inline]

Compares this Vector to another object. This should be done because the equality operators (==, !=) have been overriden by this class.

Parametrit:
obj
Palauttaa:
override int GetHashCode ( ) [inline]

Provides a unique hash code based on the member variables of this class. This should be done because the equality operators (==, !=) have been overriden by this class. The standard implementation is a simple XOR operation between all local member variables.

Palauttaa:
static Scalar GetMagnitude ( Vector3D  source) [inline, static]

Gets the Magnitude of the Vector3D that is passed.

Parametrit:
sourceThe Vector3D whos Magnitude is te be returned.
Palauttaa:
The Magnitude.
static Scalar GetMagnitudeSq ( Vector3D  source) [inline, static]

Gets the Squared Magnitude of the Vector3D that is passed.

Parametrit:
sourceThe Vector3D whos Squared Magnitude is te be returned.
Palauttaa:
The Squared Magnitude.
static Vector3D Multiply ( Vector3D  source,
Scalar  scalar 
) [inline, static]

Does Scaler Multiplication on a Vector3D.

Parametrit:
sourceThe Vector3D to be multiplied.
scalarThe scalar value that will multiply the Vector3D.
Palauttaa:
The Product of the Scaler Multiplication.
static Vector3D Multiply ( Scalar  scalar,
Vector3D  source 
) [inline, static]

Does Scaler Multiplication on a Vector3D.

Parametrit:
scalarThe scalar value that will multiply the Vector3D.
sourceThe Vector3D to be multiplied.
Palauttaa:
The Product of the Scaler Multiplication.
static Vector3D Negate ( Vector3D  source) [inline, static]

Negates a Vector3D.

Parametrit:
sourceThe Vector3D to be Negated.
Palauttaa:
The Negated Vector3D.
static Vector3D Normalize ( Vector3D  source) [inline, static]

This returns the Normalized Vector3D that is passed. This is also known as a Unit Vector.

Parametrit:
sourceThe Vector3D to be Normalized.
Palauttaa:
The Normalized Vector3D. (Unit Vector)
static bool operator!= ( Vector3D  left,
Vector3D  right 
) [inline, static]

Specifies whether the Vector3Ds do not contain the same coordinates.

Parametrit:
leftThe left Vector3D to test.
rightThe right Vector3D to test.
Palauttaa:
true if the Vector3Ds do not have the same coordinates; otherwise false
static Vector3D operator* ( Vector3D  source,
Scalar  scalar 
) [inline, static]

Does Scaler Multiplication on a Vector3D.

Parametrit:
sourceThe Vector3D to be multiplied.
scalarThe scalar value that will multiply the Vector3D.
Palauttaa:
The Product of the Scaler Multiplication.
static Vector3D operator* ( Matrix4x4  matrix,
Vector3D  vector 
) [inline, static]

Transforms the given 3-D vector by the matrix, projecting the result back into w = 1. This means that the initial w is considered to be 1.0, and then all the tree elements of the resulting 3-D vector are divided by the resulting w.

Parametrit:
matrixA Matrix4.
vectorA Vector3D.
Palauttaa:
A new vector.
static Vector3D operator* ( Vector3D  vector,
Matrix3x3  matrix 
) [inline, static]

vector * matrix [1x3 * 3x3 = 1x3]

Parametrit:
vector
matrix
Palauttaa:
static Vector3D operator* ( Matrix3x3  matrix,
Vector3D  vector 
) [inline, static]

matrix * vector [3x3 * 3x1 = 3x1]

Parametrit:
vector
matrix
Palauttaa:
static Vector3D operator* ( Scalar  scalar,
Vector3D  source 
) [inline, static]

Does Scaler Multiplication on a Vector3D.

Parametrit:
scalarThe scalar value that will multiply the Vector3D.
sourceThe Vector3D to be multiplied.
Palauttaa:
The Product of the Scaler Multiplication.
static Scalar operator* ( Vector3D  left,
Vector3D  right 
) [inline, static]

Does a Dot Operation Also know as an Inner Product.

Parametrit:
leftThe left Vector3D operand.
rightThe right Vector3D operand.
Palauttaa:
The Dot Product (Inner Product).
static Vector3D operator+ ( Vector3D  left,
Vector3D  right 
) [inline, static]

Adds 2 Vectors2Ds.

Parametrit:
leftThe left Vector3D operand.
rightThe right Vector3D operand.
Palauttaa:
The Sum of the 2 Vector3Ds.
static Vector3D operator- ( Vector3D  left,
Vector3D  right 
) [inline, static]

Subtracts 2 Vector3Ds.

Parametrit:
leftThe left Vector3D operand.
rightThe right Vector3D operand.
Palauttaa:
The Difference of the 2 Vector3Ds.
static Vector3D operator- ( Vector3D  source) [inline, static]

Negates a Vector3D.

Parametrit:
sourceThe Vector3D to be Negated.
Palauttaa:
The Negated Vector3D.
static bool operator== ( Vector3D  left,
Vector3D  right 
) [inline, static]

Specifies whether the Vector3Ds contain the same coordinates.

Parametrit:
leftThe left Vector3D to test.
rightThe right Vector3D to test.
Palauttaa:
true if the Vector3Ds have the same coordinates; otherwise false
static Vector3D operator^ ( Vector3D  left,
Vector3D  right 
) [inline, static]

Does a "2D" Cross Product also know as an Outer Product.

Parametrit:
leftThe left Vector3D operand.
rightThe right Vector3D operand.
Palauttaa:
The Z value of the resulting vector.
static Vector3D Project ( Vector3D  left,
Vector3D  right 
) [inline, static]

Thie Projects the left Vector3D onto the Right Vector3D.

Parametrit:
leftThe left Vector3D operand.
rightThe right Vector3D operand.
Palauttaa:
The Projected Vector3D.
static Vector3D SetMagnitude ( Vector3D  source,
Scalar  magnitude 
) [inline, static]

Sets the Magnitude of a Vector3D.

Parametrit:
sourceThe Vector3D whose Magnitude is to be changed.
magnitudeThe Magnitude.
Palauttaa:
A Vector3D with the new Magnitude
static Vector3D Subtract ( Vector3D  left,
Vector3D  right 
) [inline, static]

Subtracts 2 Vector3Ds.

Parametrit:
leftThe left Vector3D operand.
rightThe right Vector3D operand.
Palauttaa:
The Difference of the 2 Vector3Ds.
Scalar [] ToArray ( ) [inline]

Copies the elements of the IAdvanceValueType to a new array of Scalar .

Palauttaa:
An array containing copies of the elements of the IAdvanceValueType.

Toteuttaa luokan IAdvanceValueType.

string ToString ( string  format) [inline]

turns the object into a string representation of itself with a special format for each Scaler in it.

Parametrit:
formatthe format to be applied to each Scalar
Palauttaa:
a string with every Scalar formated with the provided format.

Toteuttaa luokan IAdvanceValueType.

static Vector3D Transform ( Vector3D  vector,
Matrix3x3  matrix 
) [inline, static]

vector * matrix [1x3 * 3x3 = 1x3]

Parametrit:
vector
matrix
Palauttaa:
static Vector3D Transform ( Matrix4x4  matrix,
Vector3D  vector 
) [inline, static]

Transforms the given 3-D vector by the matrix, projecting the result back into w = 1. This means that the initial w is considered to be 1.0, and then all the tree elements of the resulting 3-D vector are divided by the resulting w.

Parametrit:
matrixA Matrix4.
vectorA Vector3D.
Palauttaa:
A new vector.
static Vector3D Transform ( Matrix3x3  matrix,
Vector3D  vector 
) [inline, static]

matrix * vector [3x3 * 3x1 = 3x1]

Parametrit:
vector
matrix
Palauttaa:

Jäsendatan dokumentaatio

const int Count = 3

The number of Scalar values in the class.

Toteuttaa luokan IAdvanceValueType.

readonly Vector3D One = new Vector3D(1, 1, 1) [static]

Vector3D(1,1,1)

const int Size = sizeof(Scalar) * Count

The Size of the class in bytes;.

Scalar X

This is the X value.

readonly Vector3D XAxis = new Vector3D(1, 0, 0) [static]

Vector3D(1,0,0)

Scalar Y

This is the Y value.

readonly Vector3D YAxis = new Vector3D(0, 1, 0) [static]

Vector3D(0,1,0)

Scalar Z

This is the Z value.

readonly Vector3D ZAxis = new Vector3D(0, 0, 1) [static]

Vector3D(0,0,1)

readonly Vector3D Zero = new Vector3D() [static]

Vector3D(0,0,0)


Ominaisuuksien dokumentaatio

int IAdvanceValueType. Count [get]

The Number of Variables accesable though the indexer.

Toteuttaa luokan IAdvanceValueType.

Scalar Magnitude [get, set]

Gets or Sets the Magnitude (Length) of the Vector3D.

Toteuttaa luokan IVector< V >.

Scalar MagnitudeSq [get]

Gets the Squared Magnitude of the Vector3D.

Toteuttaa luokan IVector< V >.

Vector3D Normalized [get]

Gets the Normalized Vector3D. (Unit Vector)

Toteuttaa luokan IVector< V >.


Dokumentaatio tälle tietueelle luotiin seuraavasta tiedostosta:
 Kaikki Luokat Nimiavaruudet Funktiot Muuttujat Luettelotyypit Ominaisuudet Tapahtumat