Back to class index
| OBB::ScaleSyntaxvoid OBB::Scale(const float3 ¢erPoint, float scaleFactor); [4 lines of code]Applies a uniform scale to this OBB. This function scales this OBB structure in-place, using the given center point as the origin for the scaling operation. Parametersconst float3 ¢erPointSpecifies the center of the scaling operation, in global (world) space. floatscaleFactorThe uniform scale factor to apply to each global (world) space axis. Performance1.03μsecs/call ≈ 970.48k calls/second ≈ 16.17k calls/frame (@ 60fps). See AlsoSyntaxvoid OBB::Scale(const float3 ¢erPoint, const float3 &scaleFactor); [6 lines of code]Applies a non-uniform scale to the local axes of this OBB. This function scales this OBB structure in-place, using the given global space center point as the origin for the scaling operation. Parametersconst float3 ¢erPointSpecifies the center of the scaling operation, in global (world) space. const float3 &scaleFactorThe non-uniform scale factors to apply to each local axis of this OBB. Performance2.049μsecs/call ≈ 488.16k calls/second ≈ 8.14k calls/frame (@ 60fps). See AlsoWork in progress:Bug: in void OBB::Scale(const float3 ¢erPoint, const float3 &scaleFactor): This scales in global axes, not local axes. Leave a Comment |