cross2B function

void cross2B(
  1. Vector2 x,
  2. double y,
  3. Vector2 out
)

2D cross product. vec2 x double.

Implementation

void cross2B(Vector2 x, double y, Vector2 out) {
  final tempy = -y * x.x;
  out
    ..x = y * x.y
    ..y = tempy;
}