Represents a three-dimensional vector, i.e. a magnitude and direction or the difference between two points, stored as X, Y and Z components.
More...
Represents a three-dimensional vector, i.e. a magnitude and direction or the difference between two points, stored as X, Y and Z components.
A vector is the same as a point except for the operations it supports. For example, it usually does not make sense to add two points, but you can add two vectors (to get another vector) or you can add a vector to a point (to get a point).
If you really do need to add two points together or something like that, you can typecast from Point3{T} to Vector3{T}.
- See also
- Loyc.Geometry.PointMath, Loyc.Geometry.VectorMath{T}, Point3{T}
- Type Constraints
-
T | : | IConvertible | |
T | : | IEquatable<T> | |
|
static | operator Point3< T > (Vector3< T > p) |
|
static | operator Vector3< int > (Vector3< T > p) |
|
static | operator Vector3< long > (Vector3< T > p) |
|
static | operator Vector3< float > (Vector3< T > p) |
|
static | operator Vector3< double > (Vector3< T > p) |
|
static Vector3< T > | operator+ (Vector3< T > a, Vector3< T > b) |
|
static Vector3< T > | operator- (Vector3< T > a, Vector3< T > b) |
|
static Vector3< T > | operator* (Vector3< T > p, T factor) |
|
static Vector3< T > | operator/ (Vector3< T > p, T factor) |
|
static Vector3< T > | operator<< (Vector3< T > p, int amt) |
|
static Vector3< T > | operator>> (Vector3< T > p, int amt) |
|
static T | operator* (Vector3< T > a, Vector3< T > b) |
| Dot product. a*b equals lhs.Length*rhs.Length*Cos(theta) if theta is the angle between two vectors. More...
|
|
static Vector3< T > | operator- (Vector3< T > a) |
| Reverses a vector. More...
|
|
static bool | operator== (Vector3< T > a, Vector3< T > b) |
|
static bool | operator!= (Vector3< T > a, Vector3< T > b) |
|