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

Method getDirection

source/MRMesh/MRLineObject.cpp:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16MR_ADD_CLASS_FACTORY( LineObject )
17
18Vector3f LineObject::getDirection( ViewportId id /*= {}*/ ) const
19{
20 return ( xf( id ).A * Vector3f::plusX() ).normalized();
21}
22
23Vector3f LineObject::getCenter( ViewportId id /*= {}*/ ) const
24{

Callers 3

MRFeatureHelpers.hFile · 0.45
getFeatureDirectionFunction · 0.45
primitiveFromObjectFunction · 0.45

Calls 1

normalizedMethod · 0.45

Tested by

no test coverage detected