toggle menu
ktx
jvm
switch theme
search in API
math
/
ktx.math
/
ImmutableVector2
/
withClamp2
with
Clamp2
open
override
fun
withClamp2
(
min2
:
Float
,
max2
:
Float
)
:
ImmutableVector2
Returns a vector of same direction and the squared length clamped between
min2
and
max2