Skip to content

adamdusty/admat

Repository files navigation

AdMat

Linear algebra lib specific to my use cases.

Goals

  • Don't explode compile time in my other projects.

Plan

0.1.0a

  • 2, 3, and 4 dimensional vector data structures
  • [+-] operators for vectors
  • Dot and cross product for vectors
  • Normalization, length

0.2.0a

  • 4x4 matrix
  • [+-] operators for general matrices
  • Matrix multiplication
  • Matrix * vector multiplication
  • Determinant
  • Inverse
  • Transpose

0.3.0a

  • Vector clamp and smoothstep
  • Performance considerations (Initial implementations naive)
    • Implement basic benchmarks

0.4.0a

  • mat perspective
  • mat orthogonal
  • mat look at
  • mat translate
  • mat rotate
    • I think quaternions will be a better solution for rotations. Building rotation matrices from a vector of angles feels like the wrong solution, but once I have quaternions implemented, I'll benchmark both.
  • mat scale
  • vec distance
  • vec reflect
  • vec refract
  • lerp

0.5.0a

  • quaternion

About

Linear algebra lib specific to my use cases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published