SCI.js
Preparing search index...
@4bitlabs/vec2
rotate
Function rotate
rotate
(
source
:
MutableVec2
,
theta
:
number
,
out
?:
MutableVec2
)
:
MutableVec2
Rotate Vec2 around the origin by θ.
Parameters
source
:
MutableVec2
theta
:
number
The angle of rotation, in radians.
out
:
MutableVec2
= source
Returns
MutableVec2
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
SCI.js
Loading...
Rotate Vec2 around the origin by θ.