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

Function BoundingBoxIsInside

trinity/Utilities/BoundingBox.cpp:135–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135bool BoundingBoxIsInside( const Vector3& min, const Vector3& max, const Vector3& pos )
136{
137 if( ( min.x > pos.x ) || ( max.x < pos.x ) )
138 {
139 return false;
140 }
141 if( ( min.y > pos.y ) || ( max.y < pos.y ) )
142 {
143 return false;
144 }
145 if( ( min.z > pos.z ) || ( max.z < pos.z ) )
146 {
147 return false;
148 }
149 return true;
150}
151
152bool BoundingBoxIsInside( const Vector3& min, const Vector3& max, const Vector3& pos, float epsilon )
153{

Callers 3

UpdateValueMethod · 0.85
GetIntensityMethod · 0.85
UpdateVisibilityMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected