Translation operator.
More...
#include <sdf.h>
|
Vector2 | t |
| Translation vector.
|
|
SDFNode2 * | e = nullptr |
| Sub-tree.
|
|
Box2 | box |
| Box bounding the surface.
|
|
double | k |
| Lipschitz constant.
|
|
|
static constexpr double | Epsilon = 0.01 |
| Small constant used for bounding volumes.
|
|
Translation operator.
- Author
- Lucie Fournier
◆ SDFTranslate2()
Create a translation node2.
- Parameters
-
e | Sub-tree. |
t | Translation vector. |
◆ Memory()
int SDFTranslate2::Memory |
( |
| ) |
const |
|
virtual |
Return the size of a sub-tree.
Reimplemented from SDFNode2.
◆ Signed()
double SDFTranslate2::Signed |
( |
const Vector2 & |
p | ) |
const |
|
virtual |
Compute the signed distance.
- Parameters
-
Reimplemented from SDFUnary2.