 | LodCollectionIndexOf Method (Single) |
Determines the index of the LOD at a specific distance in the
LodCollection.
Namespace: DigitalRune.Graphics.SceneGraphAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntaxpublic int IndexOf(
float distance
)
Public Function IndexOf (
distance As Single
) As Integer
public:
int IndexOf(
float distance
)
member IndexOf :
distance : float32 -> int
Parameters
- distance
- Type: SystemSingle
The LOD distance. (Must be normalized - see LodCollection.)
Return Value
Type:
Int32
The index of the LOD at the specified
distance if found in the
LodCollection; otherwise, -1.
See Also