Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 561 Bytes

Geometry.md

File metadata and controls

13 lines (10 loc) · 561 Bytes

Geometric primitives

Mathter includes the following geometric primitives:

  • Lines
  • Line segments
  • Rays
  • Planes (and hyperplanes)
  • Triangles
  • Bezier curves

The implementations are rather simple because the main use is to calculate intersections. Mathter includes the Intersect function that has several overloads for different pairs of geometric primitives.

This module is intended for implementing support features, such as intersecting GUI elements or in-game objects. It's probably a bad idea to base a full-fledged raytracer on these algorithms.