0.1.0 • Published 1 year ago
@thyseus/math v0.1.0
@thyseus/math
A math package for use with Thyseus - or for general use if you need your math primitives as classes.
This package is essentially a class reimplementation of
gl-matrix; all credit to
toji and gl-matrix maintainers.
Installation
pnpm add @thyseus/mathPrinciples
thisis mutable; arguments are immutable.- Methods never mutate passed arguments, only 
this! 
- Methods never mutate passed arguments, only 
 - No hidden object creation.
- Methods other than 
clone()never create objects. 
 - Methods other than 
 - Fully tree-shakeable.
- While some methods assume certain types as arguments, there are no internal dependencies so you only pay for what you use.
 
 
API
Classes
Mat4QuatVec2Vec3Vec4
Functions
clamp(min: number, value: number, max: number): numberdegreesToRadians(degrees: number): numberradiansToDegrees(radians: number): number
Constants
HALF_PIPITAUORIGINEPSILONNORTH/SOUTH/EAST/WEST/UP/DOWN
0.1.0
1 year ago