sily v3.0.0 (2023-10-17T16:22:24Z)
Dub
Repo
Vector.snap
sily
vector
Vector
Snaps vector values
VecType
snap
(VecType p_step)
struct
Vector
(T, size_t N)
VecType
snap
(
VecType
p_step
)
if
(
isNumeric
!
T
&&
N
> 0
)
VecType
snap
(T p_step)
Parameters
p_step
VecType
Vector to snap to
Meta
Source
See Implementation
sily
vector
Vector
aliases
VecType
dataType
isNormalised
normalise
normalised
constructors
this
functions
abs
angle
angleTo
ceil
clamp
clamped
copyof
cross
distanceSquaredTo
distanceTo
dot
floor
isClose
isNormalized
length
lengthSquared
lerp
limitLength
max
min
moveTowards
normalize
normalized
opBinary
opBinaryRight
opCast
opCmp
opEquals
opOpAssign
opUnary
perpendicular
ptr
reflect
refract
rotate
round
sign
snap
snapped
toHash
toString
unproject
mixins
__anonymous
variables
data
size
Snaps vector values