Beispiel #1
0
 /// <summary>
 /// Dots the product.
 /// </summary>
 /// <param name="point">The point.</param>
 /// <returns>System.Double.</returns>
 public double DotProduct(CartesianCoordinate3D point)
 {
     return(VectorLibrary.DotProduct(X, Y, Z, point.X, point.Y, point.Z));
 }
 public static void DotProduct(double x1, double y1, double x2, double y2, double expectedResult)
 {
     Assert.AreEqual(expectedResult, VectorLibrary.DotProduct(x1, y1, x2, y2), Tolerance);
 }
Beispiel #3
0
 /// <summary>
 /// Returns the dot product of the coordinates.
 /// x1*x2 + y1*y2
 /// </summary>
 /// <param name="coordinate">The coordinate.</param>
 /// <returns>System.Double.</returns>
 public double DotProduct(CartesianCoordinate coordinate)
 {
     return(VectorLibrary.DotProduct(X, Y, coordinate.X, coordinate.Y));
 }
Beispiel #4
0
 /// <summary>
 /// Dots the product.
 /// </summary>
 /// <param name="point">The point.</param>
 /// <returns>System.Double.</returns>
 public double DotProduct(Vector3D point)
 {
     return(VectorLibrary.DotProduct(
                Xcomponent, Ycomponent, Zcomponent,
                point.Xcomponent, point.Ycomponent, point.Zcomponent));
 }