sily v3.0.0 (2023-10-17T16:22:24Z)
Dub
Repo
Vector.angle
sily
vector
Vector
Calculates angle between this vector and v2 from [0, 0]
double
angle
(VecType v2)
struct
Vector
(T, size_t N)
static if
(
N == 2
)
double
angle
(
VecType
v2
)
if
(
isNumeric
!
T
&&
N
> 0
)
double
angle
(VecType v2)
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
Calculates angle between this vector and v2 from [0, 0]