MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / containsPoint

Method containsPoint

Engine/source/scene/sceneObject.cpp:196–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194//-----------------------------------------------------------------------------
195
196bool SceneObject::containsPoint( const Point3F& point )
197{
198 // If it's not in the AABB, then it can't be in the OBB either,
199 // so early out.
200
201 if( !mWorldBox.isContained( point ) )
202 return false;
203
204 // Transform point into object space and test it against
205 // our object space bounding box.
206
207 Point3F objPoint( 0, 0, 0 );
208 getWorldTransform().mulP( point, &objPoint );
209 objPoint.convolveInverse( getScale() );
210
211 return ( mObjBox.isContained( objPoint ) );
212}
213
214//-----------------------------------------------------------------------------
215

Callers 1

updateMethod · 0.45

Calls 4

getWorldTransformFunction · 0.85
mulPMethod · 0.80
isContainedMethod · 0.45
convolveInverseMethod · 0.45

Tested by

no test coverage detected