public GetSquaredViewDepth ( |
||
camera | ||
return | float |
public float GetSquaredViewDepth( Camera camera )
{
if ( parentNode != null )
{
return ( camera.DerivedPosition - parentNode.DerivedPosition ).LengthSquared;
}
else
{
return 0;
}
}