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

Method setLength

source/MRMesh/MRLineObject.cpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void LineObject::setLength( float size, ViewportId id /*= {}*/ )
43{
44 auto currentXf = xf( id );
45 currentXf.A = Matrix3f::rotationFromEuler( currentXf.A.toEulerAngles() ) * Matrix3f::scale( Vector3f::diagonal( size / baseLineObjectLength_ ) );
46 setXf( currentXf, id );
47}
48
49void LineObject::setPoints( const Vector3f& a, const Vector3f& b, ViewportId id /*= {}*/ )
50{

Callers 2

primitiveToObjectFunction · 0.45

Calls 2

diagonalFunction · 0.85
scaleClass · 0.50

Tested by

no test coverage detected