Vector3.Reflect Method (Vector3%, Vector3%, Vector3%)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Returns the reflection of a vector off a surface that has the specified normal.
Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)
Syntax
'Declaration
Public Shared Sub Reflect ( _
    ByRef vector As Vector3, _
    ByRef normal As Vector3, _
    <OutAttribute> ByRef result As Vector3 _
)
public static void Reflect(
    ref Vector3 vector,
    ref Vector3 normal,
    out Vector3 result
)
Parameters
- vector
 Type: Microsoft.Xna.Framework.Vector3%
 Source vector.
- normal
 Type: Microsoft.Xna.Framework.Vector3%
 Normal of the surface.
- result
 Type: Microsoft.Xna.Framework.Vector3%
 [OutAttribute] The reflected vector.
Remarks
Reflect only gives the direction of a reflection off a surface, it does not determine whether the original vector was close enough to the surface to hit it.
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.