Public Member Functions | |
| Vector3 (float x, float y, float z) | |
| Constructs a Vector3 object. | |
| Vector3 (double x, double y, double z) | |
| Constructs a Vector3 object. | |
| Vector3 | Normalize () |
| Returns a vector pointing in the same direction as this one, with magnitude 1. | |
| float | DotProduct (Vector3 b) |
| Computes and returns the dot product with another vector. | |
| Vector3 | CrossProduct (Vector3 b) |
| Returns the cross product of two vectors. | |
Static Public Member Functions | |
| static Vector3 | operator+ (Vector3 a, Vector3 b) |
| Adds two vectors. | |
| static Vector3 | operator- (Vector3 a, Vector3 b) |
| Subtracts two vectors. | |
| static Vector3 | operator- (Vector3 a) |
| Unary - operator: multiples vector by -1. | |
| static Vector3 | operator* (Vector3 a, float b) |
| Scales a vector by a scalar floating point value. | |
| static Vector3 | operator/ (Vector3 a, float b) |
| Divides a vector's components by a floating point value. | |
| static float | DotProduct (Vector3 a, Vector3 b) |
| Computes and returns the dot product between two vectors. | |
| static Vector3 | CrossProduct (Vector3 a, Vector3 b) |
| Returns the cross product of two vectors. | |
Static Public Attributes | |
| static readonly Vector3 | Empty = new Vector3() |
| Vector representing the origin. | |
Properties | |
| float | X [get, set] |
| X coordinate. | |
| float | Y [get, set] |
| Y coordinate. | |
| float | Z [get, set] |
| Z coordinate. | |
| bool | IsEmpty [get] |
| Returns true if this vector's components are all zero. | |
| float | MagnitudeSquared [get] |
| Returns the square of the length of the vector. | |
| float | Magnitude [get] |
| Returns the length of the vector. | |
| AgateLib.Geometry.Vector3.Vector3 | ( | float | x, | |
| float | y, | |||
| float | z | |||
| ) |
| AgateLib.Geometry.Vector3.Vector3 | ( | double | x, | |
| double | y, | |||
| double | z | |||
| ) |
Returns the cross product of two vectors.
| a | ||
| b |
Returns the cross product of two vectors.
| b |
Computes and returns the dot product between two vectors.
| a | ||
| b |
| float AgateLib.Geometry.Vector3.DotProduct | ( | Vector3 | b | ) |
Computes and returns the dot product with another vector.
| b |
| Vector3 AgateLib.Geometry.Vector3.Normalize | ( | ) |
Returns a vector pointing in the same direction as this one, with magnitude 1.
Scales a vector by a scalar floating point value.
| a | ||
| b |
Adds two vectors.
| a | ||
| b |
Unary - operator: multiples vector by -1.
| a |
Subtracts two vectors.
| a | ||
| b |
Divides a vector's components by a floating point value.
| a | ||
| b |
readonly Vector3 AgateLib.Geometry.Vector3.Empty = new Vector3() [static] |
Vector representing the origin.
bool AgateLib.Geometry.Vector3.IsEmpty [get] |
Returns true if this vector's components are all zero.
float AgateLib.Geometry.Vector3.Magnitude [get] |
Returns the length of the vector.
float AgateLib.Geometry.Vector3.MagnitudeSquared [get] |
Returns the square of the length of the vector.
float AgateLib.Geometry.Vector3.X [get, set] |
X coordinate.
float AgateLib.Geometry.Vector3.Y [get, set] |
Y coordinate.
float AgateLib.Geometry.Vector3.Z [get, set] |
Z coordinate.
|
AgateLib Awesome Game and Tool Engine Library |
|