atelier ~master (2021-08-24T13:35:22Z)
Dub
Repo
Vec2.up
atelier
core
vec2
Vec2
{0, 1} vector.
enum
up
;
struct
Vec2
(T)
static if
(!(
__traits(isUnsigned, T)
))
static if
(
__traits(isFloating, T)
)
enum
up
=
Vec2
!
T
(
0f
,
1f
)
;
enum
up
;
Meta
Source
See Source File
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
{0, 1} vector.