BoundingSphere.Transform Method (Matrix, BoundingSphere)
Translates and scales the BoundingSphere using a given Matrix.
Syntax
'Declaration
Public Sub Transform ( _
ref matrix As Matrix, _
out result As BoundingSphere _
)
public void Transform (
ref Matrix matrix,
out BoundingSphere result
)
public:
void Transform(
ref Matrix matrix,
out BoundingSphere result
)
Parameters
- matrix
Type: 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. - result
Type: BoundingSphere
[OutAttribute] The transformed BoundingSphere.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
BoundingSphere Structure
BoundingSphere Members
CreateScale
CreateTranslation
CreateWorld
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone