/KrazyMath

Primary LanguageTypeScript

KracyMath

KracyMath is a lightweight TypeScript library for 3D vector and matrix operations.

Installation

Install KracyMath via npm:

npm install KracyMath

Vec3

Example Usage

Copy code
import { Vec3 } from 'KracyMath';

// Create vectors
const v1 = new Vec3(1, 2, 3);
const v2 = new Vec3(4, 5, 6);

// Vector addition
const result = v1.clone().add(v2);
console.log(result); // Output: Vec3 { x: 5, y: 7, z: 9 } 

Mat4

Example Usage

TODO (!)