Back to class index
| OBB::CornerPointSyntaxfloat3 OBB::CornerPoint(int cornerIndex) const; [16 lines of code]Returns a corner point of this OBB. This function generates one of the eight corner points of this OBB. ParametersintcornerIndexThe index of the corner point to generate, in the range [0, 7]. The points are returned in the order 0: ---, 1: --+, 2: -+-, 3: -++, 4: +--, 5: +-+, 6: ++-, 7: +++. (corresponding the XYZ axis directions). Performance12.316nsecs/call ≈ 81.2M calls/second ≈ 1.35M calls/frame (@ 60fps). See AlsoWork in progress:Todo: in float3 OBB::CornerPoint(int cornerIndex) const: Draw a diagram that shows which index generates which edge. Leave a Comment |