Skip to main content

Module toroidal

Module toroidal 

Source

Structs§

ToroidalRenderer
Handles rendering objects near toroidal boundaries by duplicating them.
ToroidalSpace
A 2D toroidal space where coordinates wrap around (pac-man style).

Functions§

torus_mesh
Generate a mesh of points on a torus surface.
torus_normal
Normal vector at a point on the torus.
torus_surface
Parametric surface of a torus embedded in 3D. major_r = distance from center of tube to center of torus minor_r = radius of the tube u = angle around the torus (0..2PI) v = angle around the tube (0..2PI)