Share via


BoundingSphere.Transform Method (Matrix%, BoundingSphere%)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Translates and scales the BoundingSphere using a given Matrix.

Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)

Syntax

'Declaration
Public Sub Transform ( _
    ByRef matrix As Matrix, _
    <OutAttribute> ByRef result As BoundingSphere _
)
public void Transform(
    ref Matrix matrix,
    out BoundingSphere result
)

Parameters

  • matrix
    Type: Microsoft.Xna.Framework.Matrix%
    A transformation matrix that might include translation, rotation, or uniform scaling. Note that BoundingSphere.Transform will not return correct results if there are non-uniform scaling, shears, or other unusual transforms in this transformation matrix. This is because there is no way to shear or non-uniformly scale a sphere. Such an operation would cause the sphere to lose its shape as a sphere.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.