public void PlaneDotCoordinateTest() { PlaneD target = new PlaneD(2, 3, 4, 5); Vector3D value = new Vector3D(5, 4, 3); double expected = 10 + 12 + 12 + 5; double actual = PlaneD.DotCoordinate(target, value); Assert.True(MathHelper.Equal(expected, actual), "PlaneD.DotCoordinate returns unexpected value."); }
public static double SignedDistanceTo(this PlaneD plane, Vector3D point) { return(plane.DotCoordinate(point)); }