Back to class index
| Capsule::CapsuleSyntaxCapsule::Capsule(); [1 line of code]The default constructor does not initialize any members of this class. This means that the values of the members l and r are both undefined after creating a new capsule using this default constructor. Remember to assign to them before use. See AlsoSyntaxCapsule::Capsule(const LineSegment &endPoints, float radius); [4 lines of code]Constructs a new capsule by explicitly specifying the member variables. Parametersconst LineSegment &endPointsSpecifies the line segment of the capsule. floatradiusSpecifies the size of this capsule. See AlsoSyntaxCapsule::Capsule(const float4 &bottomPoint, const float4 &topPoint, float radius); [4 lines of code]Constructs a new capsule by explicitly specifying the member variables. This constructor is equivalent to calling Capsule(LineSegment(bottomPoint, topPoint), radius), but provided here for conveniency. See Also |