53 return (i == 0) ? p1 :
p2;
59 return (p1 - p2).magnitude();
63 return (p1 + p2) / 2.0;
Vector3 center() const
Definition: Capsule.h:62
A rigid body RT (rotation-translation) transformation.
Definition: CoordinateFrame.h:59
void getRandomSurfacePoint(Vector3 &P, Vector3 &N) const
Definition: Capsule.cpp:91
Vector3 p1
Definition: Capsule.h:29
Vector3 p2
Definition: Capsule.h:30
Capsule()
Definition: Capsule.cpp:29
Vector3 point(int i) const
Definition: Capsule.h:51
float height() const
Definition: Capsule.h:58
float area() const
Definition: Capsule.cpp:67
float _radius
Definition: Capsule.h:32
void deserialize(class BinaryInput &b)
Definition: Capsule.cpp:45
Vector3 randomInteriorPoint() const
Definition: Capsule.cpp:142
#define debugAssert(exp)
Definition: debugAssert.h:160
float radius() const
Definition: Capsule.h:46
void getBounds(AABox &out) const
Definition: Capsule.cpp:78
Line axis() const
Definition: Capsule.cpp:52
Definition: BinaryOutput.h:52
bool contains(const Vector3 &p) const
Definition: Capsule.cpp:86
float volume() const
Definition: Capsule.cpp:57
uint8 const P[]
Definition: AuthenticationPackets.cpp:225
void serialize(class BinaryOutput &b) const
Definition: Capsule.cpp:38
void getReferenceFrame(class CoordinateFrame &cframe) const
Definition: Capsule.cpp:129