crossProductZ static method

double crossProductZ(
  1. ResultPoint pointA,
  2. ResultPoint pointB,
  3. ResultPoint pointC
)

Returns the z component of the cross product between vectors BC and BA.

Implementation

static double crossProductZ(
    ResultPoint pointA, ResultPoint pointB, ResultPoint pointC) {
  var bX = pointB.x;
  var bY = pointB.y;
  return ((pointC.x - bX) * (pointA.y - bY)) -
      ((pointC.y - bY) * (pointA.x - bX));
}