Method b3ScaleBox
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3ScaleBox(Vector3*, b3Transform*, Vector3, float)
This takes a box with a transform and post scale and converts it into a box with the post scale resolved with new half-widths and transform. This accepts non-uniform and negative scale. This is approximate if there is shear.
public static extern void b3ScaleBox(Vector3* halfWidths, b3Transform* transform, Vector3 postScale, float minHalfWidth)Parameters
halfWidthsVector3*-
[in/out] the box half widths
transformb3Transform*-
[in/out] the box transform with rotation and translation
postScaleVector3-
the post scale being applied to the box after the transform
minHalfWidthfloat-
the minimum half width after scale is applied