Exemple #1
0
 /// <summary>
 /// Returns the cross product/determinant of the points.
 /// x1*y2 - x2*y1
 /// </summary>
 /// <param name="point">The point.</param>
 /// <returns>System.Double.</returns>
 public double CrossProduct(Point point)
 {
     return(VectorLibrary.CrossProduct(X, Y, point.X, point.Y));
 }
Exemple #2
0
 /// <summary>
 /// Crosses the product.
 /// </summary>
 /// <param name="point">The point.</param>
 /// <returns>Point3D.</returns>
 public Point3D CrossProduct(Point3D point)
 {
     double[] matrix = VectorLibrary.CrossProduct(X, Y, Z, point.X, point.Y, point.Z);
     return(new Point3D(matrix[0], matrix[1], matrix[2]));
 }
Exemple #3
0
 /// <summary>
 /// Cross-product of two vectors.
 /// </summary>
 /// <param name="vector">The vector.</param>
 /// <returns>System.Double.</returns>
 public double CrossProduct(Vector vector)
 {
     return(VectorLibrary.CrossProduct(Xcomponent, vector.Xcomponent, Ycomponent, vector.Ycomponent));
 }