![]() |
Jypeli 4
The simple game programming library
|
A Vector with 3 dimensions. Lisää...
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. | |
A Vector with 3 dimensions.
| Vector3D | ( | Scalar | X, |
| Scalar | Y, | ||
| Scalar | Z | ||
| ) | [inline] |
Creates a New Vector3D Instance on the Stack.
| X | The X value. |
| Y | The Y value. |
| Z | The Z value. |
| 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.
| array | The one-dimensional Array that is the source of the elements copied to the IAdvanceValueType. |
| index | A 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.
| array | The one-dimensional Array that is the destination of the elements copied from the IAdvanceValueType. |
| index | A 32-bit integer that represents the index in array at which copying begins. |
Toteuttaa luokan IAdvanceValueType.
| 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.
| obj |
| 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.
| static Scalar GetMagnitude | ( | Vector3D | source | ) | [inline, static] |
| static Scalar GetMagnitudeSq | ( | Vector3D | source | ) | [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.
| matrix | A Matrix4. |
| vector | A Vector3D. |
vector * matrix [1x3 * 3x3 = 1x3]
| vector | |
| matrix |
matrix * vector [3x3 * 3x1 = 3x1]
| vector | |
| matrix |
| Scalar [] ToArray | ( | ) | [inline] |
Copies the elements of the IAdvanceValueType to a new array of Scalar .
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.
| format | the format to be applied to each Scalar |
Toteuttaa luokan IAdvanceValueType.
vector * matrix [1x3 * 3x3 = 1x3]
| vector | |
| matrix |
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.
| matrix | A Matrix4. |
| vector | A Vector3D. |
matrix * vector [3x3 * 3x1 = 3x1]
| vector | |
| matrix |
| const int Count = 3 |
The number of Scalar values in the class.
Toteuttaa luokan IAdvanceValueType.
| Scalar X |
This is the X value.
| Scalar Y |
This is the Y value.
| Scalar Z |
This is the Z value.
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 >.
1.7.4