sily ~master (2022-12-01T21:23:14Z)
Dub
Repo
Vector.distanceTo
sily
vector
Vector
Calculates distance to vector
b
struct
Vector
(T, size_t N)
static if
(
isFloatingPoint!T
)
T
distanceTo
(
VecType
b
)
if
(
isNumeric
!
T
&&
N
> 0
)
Parameters
b
VecType
Vector
Return Value
Type:
T
Distance
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
Calculates distance to vector b