atelier ~master (2021-08-24T13:35:22Z)
Dub
Repo
Vec2.angled
atelier
core
vec2
Vec2
Returns a unit vector with an angle.
struct
Vec2
(T)
static
static if
(
__traits(isFloating, T)
)
Vec2
!
T
angled
(
T
angle
)
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
Returns a unit vector with an angle.