math docs
Preparing search index...
index
vec2
fromValues
Function fromValues
fromValues
(
x
:
number
,
y
:
number
)
:
vec2
.
Vec2
Creates a new vec2 initialized with the given values
Parameters
x
:
number
X component
y
:
number
Y component
Returns
vec2
.
Vec2
a new 2D vector
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
math docs
Loading...
Creates a new vec2 initialized with the given values