Scales defined as the difference between two spheres, not a lens.
More...
#include <scales.h>
|
| | Scales (const Sphere &, const Sphere &) |
| | Create a scale as the difference of two spheres.
|
| |
| | Scales (const Circle &, const double &, const double &) |
| | Create a scale from a circle given and two heights.
|
| |
| Scales | Translated (const Vector &) const |
| | Translate a scale.
|
| |
| Scales | Rotated (const Matrix &) const |
| | Return a scale rotated by a given matrix.
|
| |
| Box | GetBox () const |
| | Compute the bouding box.
|
| |
|
Cylinder | GetCylinder () const |
| | Compute the bouding cylinder.
|
| |
| double | Signed (const Vector &) const |
| | Compute the signed distance between the scale and a point.
|
| |
| double | R (const Vector &) const |
| | Compute the squared distance between the scale and a point.
|
| |
| Vector | Normal (const Vector &) const |
| | Compute the distance vector.
|
| |
|
|
Sphere | cut |
| | Sphere and the cutting sphere
|
| |
|
Circle | circle |
| | Intersection circle.
|
| |
Scales defined as the difference between two spheres, not a lens.
- See also
- Lens
◆ Scales() [1/2]
Create a scale as the difference of two spheres.
- Parameters
-
| a,b | Sphere and cutting sphere. |
◆ Scales() [2/2]
| Scales::Scales |
( |
const Circle & | circle, |
|
|
const double & | a, |
|
|
const double & | b ) |
Create a scale from a circle given and two heights.
- Parameters
-
| circle | The circle. |
| a,b | Heights, starting with the greatest. |
◆ GetBox()
| Box Scales::GetBox |
( |
| ) |
const |
◆ Normal()
Compute the distance vector.
- Parameters
-
◆ R()
| double Scales::R |
( |
const Vector & | p | ) |
const |
Compute the squared distance between the scale and a point.
- Parameters
-
◆ Rotated()
Return a scale rotated by a given matrix.
- Parameters
-
◆ Signed()
| double Scales::Signed |
( |
const Vector & | p | ) |
const |
Compute the signed distance between the scale and a point.
- Parameters
-
◆ Translated()
Translate a scale.
- Parameters
-