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,
) {
  final bX = pointB.x;
  final bY = pointB.y;
  return ((pointC.x - bX) * (pointA.y - bY)) -
      ((pointC.y - bY) * (pointA.x - bX));
}