Antkeeper  0.0.1
Namespaces | Functions
sdf.hpp File Reference
#include <engine/math/vector.hpp>
#include <algorithm>

Go to the source code of this file.

Namespaces

 geom
 Geometric algorithms.
 
 geom::sdf
 Signed distance functions.
 

Functions

math::fvec3 geom::sdf::translate (const math::fvec3 &sample, const math::fvec3 &offset)
 
float geom::sdf::sphere (const math::fvec3 &p, float r)
 
float geom::sdf::cylinder (const math::fvec3 &p, float r, float h)
 
float geom::sdf::op_union (float a, float b)
 
float geom::sdf::op_difference (float a, float b)
 
float geom::sdf::op_intersection (float a, float b)
 
float geom::sdf::op_round (float d, float r)