Skip to content

flangzeler/flame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flame🔥

C++ License Header Only Header-only SIMD math library for real-time engines

Designed for:

  • Game Engines
  • Rendering Pipelines
  • Physics Systems
  • High-performance tools

🚀 Features

✅ SIMD-first architecture

  • SSE4.1 + AVX2 support
  • Automatic fallback
  • Zero-overhead abstraction

✅ Vector Math

  • Vec2 / Vec3 / Vec4
  • Dot, Cross, Normalize
  • Lerp, Clamp, Min/Max

✅ Quaternion System

  • Rotation (QuatMul)
  • Slerp (high precision)
  • Axis-angle conversion
  • Vector rotation

✅ Matrix System (Mat4)

  • Transform (TRS)
  • Inverse (fully correct SIMD implementation)
  • Determinant
  • Transpose
  • TransformPoint / TransformDir

✅ Camera & Projection

  • Perspective
  • Orthographic
  • LookAt

✅ Geometry & Collision

  • Ray vs AABB (SIMD optimized)
  • Ray vs Sphere
  • Ray vs Triangle (Möller–Trumbore)
  • Frustum Culling

✅ SoA SIMD Batch Processing

  • Vec4SoA (8-wide AVX)
  • Batch Add / Mul / Dot

📦 Installation

add_subdirectory(flame_math)
target_link_libraries(your_project PRIVATE flame_math)