Computes 2D normal by rotating direction vector a -> b, 90 deg counterclockwise, normalized to length n (default: 1). If out is null, creates new vector.
a
b
n
out
-
Computes 2D normal by rotating direction vector a -> b, 90 deg clockwise, normalized to length n (default: 1). If out is null, creates new vector.
Generated using TypeDoc
Computes 2D normal by rotating direction vector
a
->b
, 90 deg counterclockwise, normalized to lengthn
(default: 1). Ifout
is null, creates new vector.