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

Function coord

source/MRVoxels/MRToolPath.cpp:64–68  ·  view source on GitHub ↗

get coordinate along specified axis

Source from the content-addressed store, hash-verified

62
63// get coordinate along specified axis
64float coord( const GCommand& command, Axis axis )
65{
66 return ( axis == Axis::X ) ? command.x :
67 ( axis == Axis::Y ) ? command.y : command.z;
68}
69// get projection to the plane orthogonal to the specified axis
70Vector2f project( const GCommand& command, Axis axis )
71{

Callers 2

interpolateArcsFunction · 0.85
interpolateLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected