MCPcopy Create free account
hub / github.com/carbonengine/trinity / IsInFrustum

Method IsInFrustum

trinity/Interior/Tr2InteriorPlaceable.cpp:625–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623}
624
625bool Tr2InteriorPlaceable::IsInFrustum( const TriFrustum& frustum, Matrix& objectToWorld ) const
626{
627 Vector3 minBounds, maxBounds;
628 if( !GetWorldBoundingBox( minBounds, maxBounds ) )
629 {
630 return false;
631 }
632 objectToWorld = m_transform;
633 return frustum.IsBoxVisible( minBounds, maxBounds );
634}
635
636void Tr2InteriorPlaceable::GetPickingBatches( ITriRenderBatchAccumulator* batches, Tr2PickTypes pickTypes, const Tr2PerObjectData* perObjectData )
637{

Callers

nothing calls this directly

Calls 1

IsBoxVisibleMethod · 0.80

Tested by

no test coverage detected