13 #ifndef G3D_Cylinder_H
14 #define G3D_Cylinder_H
55 return (i == 0) ? p1 :
p2;
71 return (p1 + p2) / 2.0f;
75 return (p1 - p2).magnitude();
A rigid body RT (rotation-translation) transformation.
Definition: CoordinateFrame.h:59
void deserialize(class BinaryInput &b)
Definition: Cylinder.cpp:45
float area() const
Definition: Cylinder.cpp:69
Vector3 center() const
Definition: Cylinder.h:70
void getBounds(AABox &out) const
Definition: Cylinder.cpp:78
void getReferenceFrame(class CoordinateFrame &cframe) const
Definition: Cylinder.cpp:89
Cylinder()
Definition: Cylinder.cpp:29
#define debugAssert(exp)
Definition: debugAssert.h:160
Definition: Cylinder.h:27
Vector3 p1
Definition: Cylinder.h:29
float mRadius
Definition: Cylinder.h:32
Line axis() const
Definition: Cylinder.cpp:52
Vector3 p2
Definition: Cylinder.h:30
const Vector3 & point(int i) const
Definition: Cylinder.h:53
float volume() const
Definition: Cylinder.cpp:63
float height() const
Definition: Cylinder.h:74
float radius() const
Definition: Cylinder.cpp:58
Definition: BinaryOutput.h:52
bool contains(const Vector3 &p) const
Definition: Cylinder.cpp:84
void getRandomSurfacePoint(Vector3 &P, Vector3 &N) const
Definition: Cylinder.cpp:102
Vector3 randomInteriorPoint() const
Definition: Cylinder.cpp:154
void serialize(class BinaryOutput &b) const
Definition: Cylinder.cpp:38
uint8 const P[]
Definition: AuthenticationPackets.cpp:225