isAntiparallelTo method

bool isAntiparallelTo(
  1. Vec3 vector, [
  2. double? precision
])

Check if the vector is anti-parallel to another vector. @param precision Set to zero for exact comparisons

Implementation

bool isAntiparallelTo(Vec3 vector, [double? precision]) {
  negate(antipNeg);
  return antipNeg.almostEquals(vector, precision);
}