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

Method set

Engine/source/math/mOrientedBox.cpp:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45//-----------------------------------------------------------------------------
46
47void OrientedBox3F::set( const MatrixF& transform, const Point3F& extents )
48{
49 mCenter = transform.getPosition();
50
51 mAxes[ RightVector ] = transform.getRightVector();
52 mAxes[ ForwardVector ] = transform.getForwardVector();
53 mAxes[ UpVector ] = transform.getUpVector();
54
55 mHalfExtents = extents * 0.5f;
56
57 _initPoints();
58}
59
60//-----------------------------------------------------------------------------
61

Callers

nothing calls this directly

Calls 9

getRightVectorMethod · 0.80
getUpVectorMethod · 0.80
mulPMethod · 0.80
getPositionMethod · 0.45
getForwardVectorMethod · 0.45
getCenterMethod · 0.45
len_xMethod · 0.45
len_yMethod · 0.45
len_zMethod · 0.45

Tested by

no test coverage detected