Click or drag to resize
DigitalRuneOceanWavesGetDisplacement Method
Gets the surface displacement caused by the water waves.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public bool GetDisplacement(
	float x,
	float z,
	out Vector3F displacement,
	out Vector3F normal
)

Parameters

x
Type: SystemSingle
The x position in world space.
z
Type: SystemSingle
The z position in world space.
displacement
Type: DigitalRune.Mathematics.AlgebraVector3F
The displacement vector in world space.
normal
Type: DigitalRune.Mathematics.AlgebraVector3F
The normal vector in world space.

Return Value

Type: Boolean
if successful; otherwise, if the results are invalid because the CPU simulation has not been performed.
Exceptions
ExceptionCondition
InvalidOperationExceptionEnableCpuQueries is .
See Also