MCPcopy Create free account
hub / github.com/ddiakopoulos/polymer / sdf_circle

Function sdf_circle

apps/2dpt/2dpt.cpp:16–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14using namespace gui;
15
16inline float sdf_circle(float2 p, float r)
17{
18 return length(p) - r;
19}
20
21inline float sdf_box(float2 p, float2 half_size, float radius)
22{

Callers 1

eval_primitive_cpuFunction · 0.85

Calls 1

lengthFunction · 0.85

Tested by

no test coverage detected