Extension methods for vectors. TODO: reconsider distribution of methods between this class and PointMath in Loyc.Utilities.
More...
Source file:
Extension methods for vectors. TODO: reconsider distribution of methods between this class and PointMath in Loyc.Utilities.
Computes the "cross product" of a pair of vectors.
This is not a general cross product, as cross product is only a 3D concept, but this operator acts as though the two points were in the Z=0 plane and returns the Z coordinate of the cross product: b.X * a.Y  b.Y * a.X. This value is zero if the vectors are parallel; it is a.Length * b.Length or a.Length * b.Length if the vectors are perpendicular. One use of cross product is to determine whether the angle between two lines is greater or less than 180 degrees, corresponding to return values less or greater than zero.
 Type Constraints

T  :  IConvertible  
T  :  IEquatable<T>  
static T Loyc.Geometry.VectorExt.Length< T > 
( 
this Vector3< T > 
self  ) 


inlinestatic 
Gets the length of the vector.
 Type Constraints

T  :  IConvertible  
T  :  IEquatable<T>  
static T Loyc.Geometry.VectorExt.Quadrance< T > 
( 
this Vector3< T > 
self  ) 


inlinestatic 
Gets the square of the length of the vector.
 Type Constraints

T  :  IConvertible  
T  :  IEquatable<T>  