latest
G43riko/GToolsA comprehensive math library for TypeScript applications
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
82%
Published
3 months ago (0.0.8)
c
c
c
Mat4
No documentation available
T
mat4type
No documentation available
c
Quaternion
A quaternion class for representing 3D rotations.
c
c
SimpleMat4
No documentation available
- create
- data
- equals
- equalsArray
- from
- fromQuaternion
- fromRotation
- fromRotationTranslationScale
- fromScale
- fromTranslation
- fromXRotation
- fromYRotation
- fromZRotation
- get
- getRotation
- getScale
- getScaling
- getTransformedVector
- getTranslation
- multiply
- rotate
- scale
- set
- setIdentity
- setItem
- setScale
- setTranslation
- staticSetAngleRotation
- targetTo
- transformVector
- translate
c
SimpleVector
No documentation available
- DOWN_3
- FORWARD_3
- HALF_2
- HALF_3
- HALF_4
- INFINITY_2
- N_INFINITY_2
- NaN_2
- NaN_3
- NaN_4
- ONE_2
- ONE_3
- RIGHT_2
- RIGHT_3
- TMP2
- TMP3
- TMP4
- UP_2
- UP_3
- X2
- X3
- Y2
- Y3
- Z3
- ZERO_2
- ZERO_3
- ZERO_4
- ZERO_XZ
- assign2
- assign3
- assign4
- clone2
- clone3
- clone4
- cloneReadonly2
- cloneReadonly3
- cloneReadonly4
- cloneXZ
- create
- create2
- create3
- create4
- createDir
- createDirXY
- createRandom2Int
- createReadonly
- createReadonly2
- createReadonly3
- createReadonly4
- createReadonlyXZ
- createXZ
- empty2
- empty3
c
Vector2
A 2D vector class for mathematical operations.
- DOWN
- LEFT
- ONE
- RIGHT
- UP
- ZERO
- add
- addNum
- addNums
- angle
- angleBetweenPoints
- average
- avg
- center
- clone
- createEmpty
- createOutlineMinMax
- cross
- crossNum
- dist
- div
- divNum
- divNums
- dot
- equals
- from
- fromAngle
- fromArray
- fromVec
- getAbs
- getInverted
- getNormalized
- invert
- isVector
- isVisible
- isZero
- length
- lerp
- max
- min
- mul
- mulNum
- mulNums
- normalize
- perpendicular
- rotate
- set
- setData
- size
- sizeOf
- sizeSQ
- sqrtDist
- sub
- subNum
- subNums
- sum
- sumNum
- toArray
- toReadonlyProxy
- toString
- x
- y
c
Vector3
No documentation available
- ONE
- TMP
- UP
- ZERO
- add
- addNum
- addNums
- angle
- avg
- clone
- createEmpty
- createFromSphericalCoords
- createOutlineMinMax
- cross
- crossStatic
- dist
- distSqrt
- div
- divNum
- divNums
- dot
- equals
- equalsApproximately
- from
- fromArray
- fromVec
- generateRandomUnitVectorWithinCone
- getAbs
- getInverted
- getNormalized
- invert
- isVector
- isZero
- length
- max
- min
- mul
- mulNum
- mulNums
- normalize
- reflect
- refract
- rotate
- set
- setData
- size
- sizeSQ
- sub
- subNum
- subNums
- sum
- sumNum
- toArray
- toReadonlyProxy
- toString
- transformQuat
- x
- xy
- xz
- y
- yx
- yz
- z
- zx
- zy
c
v