angleToSigned method

double angleToSigned(
  1. Vector3 other,
  2. Vector3 normal
)
inherited

Returns the signed angle between this and other around normal in radians.

Implementation

double angleToSigned(Vector3 other, Vector3 normal) {
  final angle = angleTo(other);
  final c = cross(other);
  final d = c.dot(normal);

  return d < 0.0 ? -angle : angle;
}