MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / updateArrow

Method updateArrow

source/MRViewer/MRDirectionWidget.cpp:57–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void DirectionWidget::updateArrow( const Arrow& arrow )
58{
59 if ( !directionObj_ )
60 return assert( false );
61
62 directionObj_->setWorldXf( AffineXf3f( arrow.length * Matrix3f::rotation( Vector3f::plusZ(), arrow.dir ), arrow.base ) );
63}
64
65void DirectionWidget::updateLocalDirection( const Vector3f& dir )
66{

Callers

nothing calls this directly

Calls 1

setWorldXfMethod · 0.80

Tested by

no test coverage detected