Defines a 3D Cylinder. More...
#include <cadex/Geom/Cylinder.hxx>
Public Member Functions | |
| Cylinder (const Geom::Axis1d &theAxis, double theRadius, double theHeight) | |
| Constructor. | |
| void | SetAxis (const Geom::Axis1d &theAxis) |
| Sets the axis of Cylinder. | |
| void | SetRadius (double theRadius) |
| Sets the radius of Cylinder to the specified value. The radius must be greater than zero. | |
| void | SetHeight (double theHeight) |
| Sets the height of Cylinder along the axis to the specified values. The height must be greater than zero. | |
| const Geom::Axis1d & | Axis () const |
| double | Radius () const |
| double | Height () const |
| const Geom::Point & | Center () const |
| double | Volume () const |
| double | SurfaceArea () const |
| bool | IsInfinite () const |
| Returns true if at least one coordinate is infinite. | |
| bool | Contains (const Geom::Point &thePoint) const |
| Returns true if the point lies inside the Cylinder. | |
| void | Multiply (double theValue) |
| Scales Cylinder by scalar value. | |
| Cylinder | Multiplied (double theValue) const |
| Returns the Cylinder scaled by scalar value. | |
| void | Transform (const Geom::Transformation &theTransformation) |
| Transforms the Cylinder. | |
| Cylinder | Transformed (const Geom::Transformation &theTransformation) const |
| Returns the transformed Cylinder. | |
| cadex::Geom::Cylinder::Cylinder | ( | const Geom::Axis1d & | theAxis, |
| double | theRadius, | ||
| double | theHeight ) |
Constructor.
Creates a Cylinder from axis, radius and height. The dimensions must be greater than zero.
| bool cadex::Geom::Cylinder::Contains | ( | const Geom::Point & | thePoint | ) | const |
Returns true if the point lies inside the Cylinder.
| bool cadex::Geom::Cylinder::IsInfinite | ( | ) | const |
Returns true if at least one coordinate is infinite.
"Infinite" means that coordinate's absolute value is greater than \(10^{100}\).
| Cylinder cadex::Geom::Cylinder::Multiplied | ( | double | theValue | ) | const |
Returns the Cylinder scaled by scalar value.
| void cadex::Geom::Cylinder::Multiply | ( | double | theValue | ) |
| void cadex::Geom::Cylinder::SetAxis | ( | const Geom::Axis1d & | theAxis | ) |
Sets the axis of Cylinder.
| void cadex::Geom::Cylinder::SetHeight | ( | double | theHeight | ) |
Sets the height of Cylinder along the axis to the specified values. The height must be greater than zero.
| void cadex::Geom::Cylinder::SetRadius | ( | double | theRadius | ) |
Sets the radius of Cylinder to the specified value. The radius must be greater than zero.
| void cadex::Geom::Cylinder::Transform | ( | const Geom::Transformation & | theTransformation | ) |
| Cylinder cadex::Geom::Cylinder::Transformed | ( | const Geom::Transformation & | theTransformation | ) | const |
Returns the transformed Cylinder.