Skip to content

Commit

Permalink
fix(typo): fix typo in rounded error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nmattia committed Mar 19, 2024
1 parent 9040dd2 commit f6d5286
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/modeling/src/primitives/roundedCuboid.js
Expand Up @@ -150,7 +150,7 @@ const roundedCuboid = (options) => {

if (roundRadius > (size[0] - EPS) ||
roundRadius > (size[1] - EPS) ||
roundRadius > (size[2] - EPS)) throw new Error('roundRadius must be smaller then the radius of all dimensions')
roundRadius > (size[2] - EPS)) throw new Error('roundRadius must be smaller than the radius of all dimensions')

segments = Math.floor(segments / 4)

Expand Down
2 changes: 1 addition & 1 deletion packages/modeling/src/primitives/roundedCylinder.js
Expand Up @@ -38,7 +38,7 @@ const roundedCylinder = (options) => {
if (!isGTE(height, 0)) throw new Error('height must be positive')
if (!isGTE(radius, 0)) throw new Error('radius must be positive')
if (!isGTE(roundRadius, 0)) throw new Error('roundRadius must be positive')
if (roundRadius > radius) throw new Error('roundRadius must be smaller then the radius')
if (roundRadius > radius) throw new Error('roundRadius must be smaller than the radius')
if (!isGTE(segments, 4)) throw new Error('segments must be four or more')

// if size is zero return empty geometry
Expand Down
2 changes: 1 addition & 1 deletion packages/modeling/src/primitives/roundedRectangle.js
Expand Up @@ -44,7 +44,7 @@ const roundedRectangle = (options) => {
size = size.map((v) => v / 2) // convert to radius

if (roundRadius > (size[0] - EPS) ||
roundRadius > (size[1] - EPS)) throw new Error('roundRadius must be smaller then the radius of all dimensions')
roundRadius > (size[1] - EPS)) throw new Error('roundRadius must be smaller than the radius of all dimensions')

const cornersegments = Math.floor(segments / 4)

Expand Down

0 comments on commit f6d5286

Please sign in to comment.