From 247d526962b5af3262c915b9a6154b9bdf9d2f4d Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Thu, 20 Jan 2022 21:07:52 -0800 Subject: [PATCH] Added CENTRE alias to CENTER. --- constants.scad | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/constants.scad b/constants.scad index 1e2a1d3..2253af2 100644 --- a/constants.scad +++ b/constants.scad @@ -98,6 +98,10 @@ $slop = 0.0; // Constant: INCH // Description: // The number of millimeters in an inch. +// Example(2D): +// square(2*INCH, center=true); +// Example(3D): +// cube([4,3,2.5]*INCH, center=true); INCH = 25.4; @@ -162,7 +166,7 @@ TOP = [ 0, 0, 1]; UP = TOP; // Constant: CENTER -// Aliases: CTR +// Aliases: CTR, CENTRE // Topics: Constants, Vectors // See Also: LEFT, RIGHT, FRONT, BACK, UP, DOWN // Description: Zero vector. Centered. [0,0,0] @@ -170,6 +174,7 @@ UP = TOP; // cuboid(20, anchor=CENTER); CENTER = [ 0, 0, 0]; // Centered zero vector. CTR = CENTER; +CENTRE = CENTER; // Section: Line specifiers