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

Method setDirection

source/MRMesh/MRConeObject.cpp:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void ConeObject::setDirection( const Vector3f& normal, ViewportId id /*= {}*/ )
78{
79 auto currentXf = xf( id );
80
81 currentXf.A = getConeRotationMatrix( normal ) * s_.get( id );
82 setXf( currentXf, id );
83}
84
85void ConeObject::setCenter( const Vector3f& center, ViewportId id /*= {}*/ )
86{

Callers

nothing calls this directly

Calls 2

getConeRotationMatrixFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected