Tesla Graphics Engine Documentation (January 2012)
Reflect Method (value, normal)
Tesla
►
Tesla.Math
►
Vector2
►
Reflect(Vector2, Vector2)
C#
Compute the reflection vector off a surface with the specified normal.
Declaration Syntax
C#
public
static
Vector2
Reflect
(
Vector2
value
,
Vector2
normal
)
Parameters
value
(
Vector2
)
Source vector
normal
(
Vector2
)
Surface normal (unit vector)
Return Value
Resulting vector
Assembly:
Tesla
(Module: Tesla) Version: 0.5.0.0 (0.5.0.0)