GetTransformedBoundingBox
BoundingBoxXYZ? GetTransformedBoundingBox(this BoundingBoxXYZ? box, Transform t)Returns a transformed copy of the bounding box by transforming its eight corners and recomputing axis-aligned extents.
Parameters
- boxBoundingBoxXYZ?
The source bounding box to transform.
- tTransform
The transform to apply.
Returns: A new axis-aligned BoundingBoxXYZ after transformation, or null if the input was null.
Example
Transform move = Transform.CreateTranslation(new XYZ(10, 0, 0));BoundingBoxXYZ? transformed = box?.GetTransformedBoundingBox(move);