Vector2Angle method

  1. @override
double Vector2Angle(
  1. Vector2D v1,
  2. Vector2D v2
)
override

Calculate the signed angle from v1 to v2, relative to the origin (0, 0)

NOTE: Coordinate system convention: positive X right, positive Y down positive angles appear clockwise, and negative angles appear counterclockwise

Implementation

@override
double Vector2Angle(
  Vector2D v1,
  Vector2D v2,
) => _ffi.Vector2Angle(
  $.Vector2$.Ref1(v1).asNativePointer<Vector2C>().ref,
  $.Vector2$.Ref2(v2).asNativePointer<Vector2C>().ref,
);