scaleOrthogonalInto method

Vector2 scaleOrthogonalInto(
  1. double scale,
  2. Vector2 out
)

Rotate this by 90 degrees then scale it. Store result in out. Return out.

Implementation

Vector2 scaleOrthogonalInto(double scale, Vector2 out) {
  out.setValues(-scale * _v2storage[1], scale * _v2storage[0]);
  return out;
}