-------------------------------------------------------------------------------------- Description: Implements ITr2Renderable interface. Return Value: Line set's bounding sphere center distance from view position. --------------------------------------------------------------------------------------
| 646 | // Line set's bounding sphere center distance from view position. |
| 647 | // -------------------------------------------------------------------------------------- |
| 648 | float Tr2CurveLineSet::GetSortValue() |
| 649 | { |
| 650 | // center of bounding sphere is "check point" |
| 651 | Vector3 center = TransformCoord( BoundingSphereGetCenter( m_boundingSphere ), m_worldTransform ); |
| 652 | |
| 653 | // distance from viewer to sort z |
| 654 | Vector3 d = Tr2Renderer::GetViewPosition() - center; |
| 655 | float distance = Length( d ); |
| 656 | return distance + m_depthOffset; |
| 657 | } |
| 658 | |
| 659 | // ------------------------------------------------------------- |
| 660 | // Description: |
nothing calls this directly
no test coverage detected