Vector3.Reflect Method (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 Function Reflect ( _
vector As Vector3, _
normal As Vector3 _
) As Vector3
public static Vector3 Reflect(
Vector3 vector,
Vector3 normal
)
Parameters
- vector
Type: Microsoft.Xna.Framework.Vector3
Source vector.
- normal
Type: Microsoft.Xna.Framework.Vector3
Normal of the surface.
Return Value
Type: Microsoft.Xna.Framework.Vector3
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.