Click or drag to resize
Vector3Reflect Method (Vector3, Vector3, Vector3)

[This is preliminary documentation and is subject to change.]

Returns the reflection of a vector off a surface that has the specified normal. Reference page contains code sample.

Namespace: VRageMath
Assembly: VRage.Math (in VRage.Math.dll) Version: 1.0.0.0
Syntax
C#
public static void Reflect(
	ref Vector3 vector,
	ref Vector3 normal,
	out Vector3 result
)

Parameters

vector
Type: VRageMathVector3
Source vector.
normal
Type: VRageMathVector3
Normal of the surface.
result
Type: VRageMathVector3
[OutAttribute] The reflected vector.
See Also