| Support Forum G3D Web Page |
Right cylinder
More...
Public Member Functions | |
| Cylinder () | |
| Uninitialized. More... | |
| Cylinder (class BinaryInput &b) | |
| Cylinder (const Vector3 &_p1, const Vector3 &_p2, float _r) | |
| Cylinder (const Any &a) | |
| float | area () const |
| Line | axis () const |
| The line down the center of the Cylinder. More... | |
| Vector3 | center () const |
| Center of mass. More... | |
| bool | contains (const Vector3 &p) const |
Returns true if the point is inside the Cylinder or on its surface. More... | |
| void | deserialize (class BinaryInput &b) |
| void | getBounds (AABox &out) const |
Get close axis aligned bounding box. More... | |
| void | getRandomSurfacePoint (Vector3 &P, Vector3 &N, Random &rnd=Random::common()) const |
| Random world space point with outward facing normal. More... | |
| void | getReferenceFrame (class CoordinateFrame &cframe) const |
A reference frame in which the center of mass is at the origin and the Y-axis is the cylinder's axis. More... | |
| size_t | hashCode () const |
| float | height () const |
| bool | operator== (const Cylinder &other) const |
| const Vector3 & | point (int i) const |
| Returns point 0 or 1. More... | |
| float | radius () const |
| Vector3 | randomInteriorPoint (Random &rnd=Random::common()) const |
| Point selected uniformly at random over the volume. More... | |
| void | serialize (class BinaryOutput &b) const |
| Any | toAny () const |
| float | volume () const |
Right cylinder
| G3D::Cylinder::Cylinder | ( | ) |
Uninitialized.
| G3D::Cylinder::Cylinder | ( | class BinaryInput & | b | ) |
| G3D::Cylinder::Cylinder | ( | const Any & | a | ) |
| float G3D::Cylinder::area | ( | ) | const |
Referenced by G3D::CylinderShape::area().
|
inline |
Center of mass.
Referenced by G3D::CylinderShape::boundingSphere(), and G3D::CylinderShape::center().
| bool G3D::Cylinder::contains | ( | const Vector3 & | p | ) | const |
Returns true if the point is inside the Cylinder or on its surface.
| void G3D::Cylinder::deserialize | ( | class BinaryInput & | b | ) |
| void G3D::Cylinder::getBounds | ( | AABox & | out | ) | const |
Get close axis aligned bounding box.
With vertical world orientation, the top and bottom might not be very tight.
Referenced by G3D::CylinderShape::boundingAABox().
| void G3D::Cylinder::getRandomSurfacePoint | ( | Vector3 & | P, |
| Vector3 & | N, | ||
| Random & | rnd = Random::common() |
||
| ) | const |
Random world space point with outward facing normal.
Referenced by G3D::CylinderShape::getRandomSurfacePoint().
| void G3D::Cylinder::getReferenceFrame | ( | class CoordinateFrame & | cframe | ) | const |
A reference frame in which the center of mass is at the origin and the Y-axis is the cylinder's axis.
If the cylinder is transformed, this reference frame may freely rotate around its axis.
| size_t G3D::Cylinder::hashCode | ( | ) | const |
|
inline |
Referenced by G3D::CylinderShape::boundingSphere().
| bool G3D::Cylinder::operator== | ( | const Cylinder & | other | ) | const |
|
inline |
Returns point 0 or 1.
| float G3D::Cylinder::radius | ( | ) | const |
Referenced by G3D::CylinderShape::boundingSphere().
| Vector3 G3D::Cylinder::randomInteriorPoint | ( | Random & | rnd = Random::common() | ) | const |
Point selected uniformly at random over the volume.
Referenced by G3D::CylinderShape::randomInteriorPoint().
| void G3D::Cylinder::serialize | ( | class BinaryOutput & | b | ) | const |
| Any G3D::Cylinder::toAny | ( | ) | const |
| float G3D::Cylinder::volume | ( | ) | const |
Referenced by G3D::CylinderShape::volume().
1.8.15