|
Core 1.0
|
Intersection between a cone and a sphere. More...
#include <sector.h>
Public Member Functions | |
| Sector () | |
| Empty. | |
| Sector (const double &, const double &=Math::HalfPi) | |
| Creates a sector. | |
| Sector (const Vector &, const Vector &, const double &, const double &=Math::HalfPi) | |
| Creates a sector. | |
| ~Sector () | |
| Empty. | |
| double | Signed (const Vector &) const |
| Compute the signed Euclidean distance between a point and a sector. | |
| void | Rotate (const Matrix &) |
| Rotates a sector. | |
| void | Translate (const Vector &) |
| Translates a circle. | |
| void | Scale (const double &) |
| Uniformly scales a circle. | |
| Box | GetBox () const |
| Compute the axis aligned bounding box of a circle. | |
Protected Attributes | |
| Vector | c = Vector::Null |
| Center of the sector. | |
| Vector | axis = Vector::Z |
| Axis. | |
| Vector2 | s = Vector2(Math::Sqrt2, Math::Sqrt2) |
| Sine and cosine of the sector angle. | |
| double | a = Math::Pi / 4.0 |
| Angle. | |
| double | r = 1.0 |
| Radius. | |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const Sector §or) |
| Overloaded. | |
Intersection between a cone and a sphere.
|
explicit |
Creates a sector.
| r | Radius. |
| a | Angle. |
|
explicit |
Creates a sector.
| c | Center. |
| axis | Axis, which should be normalized. |
| r | Radius. |
| a | Angle. |
| void Sector::Rotate | ( | const Matrix & | r | ) |
Rotates a sector.
| r | Rotation matrix. |
| void Sector::Scale | ( | const double & | s | ) |
Uniformly scales a circle.
| s | Scaling factor. |
| double Sector::Signed | ( | const Vector & | p | ) | const |
Compute the signed Euclidean distance between a point and a sector.
| p | Point. |
| void Sector::Translate | ( | const Vector & | t | ) |
Translates a circle.
| t | Translation vector. |
|
friend |
Overloaded.
| s | Stream. |
| sector | The sector. |