sily ~master (2022-12-01T21:23:14Z)
Dub
Repo
Vector.snap
sily
vector
Vector
Snaps vector values
struct
Vector
(T, size_t N)
static if
(
isFloatingPoint!T
)
void
snap
(
VecType
p_step
)
if
(
isNumeric
!
T
&&
N
> 0
)
Parameters
p_step
VecType
Vector to snap to
Meta
Source
See Implementation
sily
vector
Vector
aliases
VecType
dataType
isNormalised
normalise
constructors
this
functions
abs
ceil
clamp
copyof
distanceSquaredTo
distanceTo
dot
floor
isClose
isNormalized
length
lengthSquared
lerp
limitLength
max
min
normalize
opBinary
opBinaryRight
opCmp
opEquals
opOpAssign
opUnary
ptr
round
sign
snap
toHash
toString
manifest constants
AccessString
mixins
__anonymous
variables
data
size
Snaps vector values