linearly v0.32.0 • Docs
linearly v0.32.0 / vec2
vec2
Functions for vec2, a 2D vector.
Index
Types
Constants
Generators
Functions
- abs
- acos
- add
- angle
- approxEquals
- asin
- atan
- atan2
- average
- ceil
- clamp
- cos
- cross
- degrees
- delta
- direction
- distance
- divide
- dot
- efit
- exactEquals
- exp
- exp2
- fit
- floor
- fract
- inverseLerp
- inverseSqrt
- invert
- length
- lerp
- log
- log2
- max
- min
- mod
- multiply
- negate
- normalize
- oneMinus
- pow
- quantize
- radians
- rotate
- rotate90
- round
- scale
- scaleAndAdd
- sign
- sin
- smoothstep
- sqrt
- squaredDistance
- squaredLength
- step
- subtract
- tan
- toString
- transformMat2
- transformMat2d
- transformMat3
- trunc