MCPcopy Index your code
hub / github.com/cncjs/gcode-toolpath / translateZ

Method translateZ

src/Toolpath.js:710–718  ·  view source on GitHub ↗
(z, relative)

Source from the content-addressed store, hash-verified

708 return translatePosition(this.position.y, y, !!relative);
709 }
710 translateZ(z, relative) {
711 if (z !== undefined) {
712 z = this.isImperialUnits() ? in2mm(z) : z;
713 }
714 if (relative === undefined) {
715 relative = this.isRelativeDistance();
716 }
717 return translatePosition(this.position.z, z, !!relative);
718 }
719 translateI(i) {
720 return this.translateX(i, true);
721 }

Callers 2

ToolpathClass · 0.95
translateKMethod · 0.95

Calls 4

isImperialUnitsMethod · 0.95
isRelativeDistanceMethod · 0.95
in2mmFunction · 0.85
translatePositionFunction · 0.85

Tested by

no test coverage detected