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

Method setDirection

source/MRMesh/MRLineObject.cpp:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void LineObject::setDirection( const Vector3f& normal, ViewportId id /*= {}*/ )
29{
30 auto currentXf = xf( id );
31 currentXf.A = Matrix3f::rotation( Vector3f::plusX(), normal ) * s_.get( id );
32 setXf( currentXf, id );
33}
34
35void LineObject::setCenter( const Vector3f& center, ViewportId id /*= {}*/ )
36{

Callers 1

primitiveToObjectFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected