Merge pull request from revarbat/revarbat_dev

Added CENTRE alias to CENTER.
This commit is contained in:
Revar Desmera 2022-01-20 21:41:53 -08:00 committed by GitHub
commit 3cbcce51a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,6 +98,10 @@ $slop = 0.0;
// Constant: INCH // Constant: INCH
// Description: // Description:
// The number of millimeters in an inch. // 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; INCH = 25.4;
@ -162,7 +166,7 @@ TOP = [ 0, 0, 1];
UP = TOP; UP = TOP;
// Constant: CENTER // Constant: CENTER
// Aliases: CTR // Aliases: CTR, CENTRE
// Topics: Constants, Vectors // Topics: Constants, Vectors
// See Also: LEFT, RIGHT, FRONT, BACK, UP, DOWN // See Also: LEFT, RIGHT, FRONT, BACK, UP, DOWN
// Description: Zero vector. Centered. [0,0,0] // Description: Zero vector. Centered. [0,0,0]
@ -170,6 +174,7 @@ UP = TOP;
// cuboid(20, anchor=CENTER); // cuboid(20, anchor=CENTER);
CENTER = [ 0, 0, 0]; // Centered zero vector. CENTER = [ 0, 0, 0]; // Centered zero vector.
CTR = CENTER; CTR = CENTER;
CENTRE = CENTER;
// Section: Line specifiers // Section: Line specifiers