Export (0) Print
Expand All

Vector3.Reflect Method (Vector3, Vector3)

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)

'Declaration
Public Shared Function Reflect ( _
	vector As Vector3, _
	normal As Vector3 _
) As Vector3

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.

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.

Silverlight

Supported in: 5

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

Community Additions

ADD
Show:
© 2015 Microsoft