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

Method translateY

src/Toolpath.js:701–709  ·  view source on GitHub ↗
(y, relative)

Source from the content-addressed store, hash-verified

699 return translatePosition(this.position.x, x, !!relative);
700 }
701 translateY(y, relative) {
702 if (y !== undefined) {
703 y = this.isImperialUnits() ? in2mm(y) : y;
704 }
705 if (relative === undefined) {
706 relative = this.isRelativeDistance();
707 }
708 return translatePosition(this.position.y, y, !!relative);
709 }
710 translateZ(z, relative) {
711 if (z !== undefined) {
712 z = this.isImperialUnits() ? in2mm(z) : z;

Callers 2

ToolpathClass · 0.95
translateJMethod · 0.95

Calls 4

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

Tested by

no test coverage detected