Commit 0b725e20 authored by iSergio's avatar iSergio
Browse files

Added Cartesian2.cross which computes the magnitude of the cross product of...

Added Cartesian2.cross which computes the magnitude of the cross product of two vectors whose Z values are implicitly 0.
parent d4ec07c4
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -180,6 +180,15 @@ public class Cartesian2 implements Packable {
  @JsMethod
  public static native Cartesian2 clone(Cartesian2 cartesian, Cartesian2 result);

  /**
   * Computes the magnitude of the cross product that would result from implicitly setting the Z coordinate of the input vectors to 0.
   * @param left The first Cartesian.
   * @param right The second Cartesian.
   * @return The cross product.
   */
  @JsMethod
  public static native Double cross(Cartesian2 left, Cartesian2 right);

  /**
   * Computes the distance between two points.
   *