Antkeeper  0.0.1
Functions
geom::sdf Namespace Reference

Signed distance functions. More...

Functions

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

Detailed Description

Signed distance functions.

Function Documentation

◆ cylinder()

float geom::sdf::cylinder ( const math::fvec3 p,
float  r,
float  h 
)
inline

Definition at line 41 of file sdf.hpp.

◆ op_difference()

float geom::sdf::op_difference ( float  a,
float  b 
)
inline

Definition at line 53 of file sdf.hpp.

◆ op_intersection()

float geom::sdf::op_intersection ( float  a,
float  b 
)
inline

Definition at line 58 of file sdf.hpp.

◆ op_round()

float geom::sdf::op_round ( float  d,
float  r 
)
inline

Definition at line 63 of file sdf.hpp.

◆ op_union()

float geom::sdf::op_union ( float  a,
float  b 
)
inline

Definition at line 48 of file sdf.hpp.

◆ sphere()

float geom::sdf::sphere ( const math::fvec3 p,
float  r 
)
inline

Definition at line 36 of file sdf.hpp.

◆ translate()

math::fvec3 geom::sdf::translate ( const math::fvec3 sample,
const math::fvec3 offset 
)
inline

Definition at line 31 of file sdf.hpp.