atelier ~master (2021-08-24T13:35:22Z)
Dub
Repo
Vec2.clamp
atelier
core
vec2
Vec2
Bounds the vector between those two.
Vec2
!
T
clamp
(Vec2!T min, Vec2!T max)
struct
Vec2
(T)
const
Vec2
!
T
clamp
(
const
Vec2
!
T
min
,
const
Vec2
!
T
max
)
Vec2
!
T
clamp
(Vec4!T clip)
Meta
Source
See Implementation
atelier
core
vec2
Vec2
functions
abs
angle
approach
ceil
clamp
contain
cross
distance
distanceSquared
dot
fit
floor
isBetween
length
lengthSquared
lerp
max
min
normal
normalize
normalized
opBinary
opBinaryRight
opCast
opCmp
opEquals
opOpAssign
opUnary
reflect
refract
rotate
rotated
round
set
sum
toHash
manifest constants
down
half
left
one
right
up
zero
static functions
angled
variables
x
y
Bounds the vector between those two.