1
0

Update comments about getEdges (it's about corners...)

Wish I could rename those functions, but that breaks a bit too much. So at least document that getEdges is about getting corners and not about getting edges.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6590 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien
2024-01-29 15:41:42 +00:00
parent 67fa713038
commit 2d880e4cfe
2 changed files with 20 additions and 20 deletions

View File

@@ -190,17 +190,17 @@ namespace scene
return box;
}
//! Get a the 8 corners of the original bounding box transformed and
//! animated by the absolute transformation.
//! Get a the 8 corners of the original bounding box transformed by the
//! absolute transformation.
/** Note: The result is _not_ identical to getTransformedBoundingBox().getEdges(),
but getting an aabbox3d of these edges would then be identical.
\param edges Receives an array with the transformed edges */
virtual void getTransformedBoundingBoxEdges(core::array< core::vector3d<f32> >& edges) const
but getting an aabbox3d of these corners would then be identical.
\param corners Receives an array with the transformed corners */
virtual void getTransformedBoundingBoxEdges(core::array< core::vector3d<f32> >& corners) const
{
edges.set_used(8);
getBoundingBox().getEdges( edges.pointer() );
corners.set_used(8);
getBoundingBox().getEdges( corners.pointer() );
for ( u32 i=0; i<8; ++i )
AbsoluteTransformation.transformVect( edges[i] );
AbsoluteTransformation.transformVect( corners[i] );
}
//! Get the absolute transformation of the node. Is recalculated every OnAnimate()-call.