|
Core 1.0
|
A scale is defined as the difference between two spheres. More...
#include <scales.h>
Public Member Functions | |
| 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 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. | |
| 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. | |
Protected Attributes | |
| Sphere | cut |
| Sphere and the cutting sphere | |
| Circle | circle |
| Intersection circle. | |
A scale is defined as the difference between two spheres.
Create a scale as the difference of two spheres.
| a,b | Sphere and cutting sphere (the radius of the cutting sphere should be larger). |
| Scales::Scales | ( | const Circle & | circle, |
| const double & | a, | ||
| const double & | b ) |
Create a scale from a circle and two heights.
| circle | The circle. |
| a,b | Heights, starting with the largest. |
| Box Scales::GetBox | ( | ) | const |
Compute the bouding box.
Calls Scales::GetCylinder()
| double Scales::R | ( | const Vector & | p | ) | const |
Compute the squared distance between the scale and a point.
| p | Point. |
Return a scale rotated by a given matrix.
| r | Rotation matrix. |
| double Scales::Signed | ( | const Vector & | p | ) | const |
Compute the signed distance between the scale and a point.
| p | Point. |