From a05689ade502f98b6d0bc484fb2b1e27dea349f7 Mon Sep 17 00:00:00 2001 From: Ian Mackenzie Date: Sat, 30 Jun 2018 17:18:50 -0400 Subject: [PATCH 1/4] Remove Debug.log call Not legal in published packages --- src/Polygon2d/Monotone.elm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Polygon2d/Monotone.elm b/src/Polygon2d/Monotone.elm index c394d72d..ee6c053c 100644 --- a/src/Polygon2d/Monotone.elm +++ b/src/Polygon2d/Monotone.elm @@ -300,11 +300,6 @@ getEdge index state = error : a -> a error defaultValue = - let - _ = - Debug.log "ERROR: please file a bug report at https://github.com/ianmackenzie/elm-geometry/issues" - "Internal error in Polygon2d.Monotone module" - in defaultValue From 25cc221c4b05f4c4e120dcd11fb14b9842b8f022 Mon Sep 17 00:00:00 2001 From: Ian Mackenzie Date: Sat, 30 Jun 2018 17:20:53 -0400 Subject: [PATCH 2/4] Fix version number --- elm.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elm.json b/elm.json index de24c1ac..b821d0b2 100644 --- a/elm.json +++ b/elm.json @@ -3,7 +3,7 @@ "name": "ianmackenzie/elm-geometry", "summary": "2D/3D geometric data types and operations", "license": "MPL-2.0", - "version": "2.1.0", + "version": "1.0.0", "exposed-modules": [ "Arc2d", "Arc3d", From 2ef608d5401aca98f40b51a9d15f3aa86e8332ef Mon Sep 17 00:00:00 2001 From: Ian Mackenzie Date: Sat, 30 Jun 2018 17:24:12 -0400 Subject: [PATCH 3/4] Remove nonexistent test dependencies --- elm.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/elm.json b/elm.json index b821d0b2..1a71e192 100644 --- a/elm.json +++ b/elm.json @@ -49,8 +49,6 @@ "ianmackenzie/elm-triangular-mesh": "1.0.0 <= v < 2.0.0" }, "test-dependencies": { - "elm-explorations/test": "1.0.0 <= v < 2.0.0", - "eeue56/elm-shrink": "2.0.0 <= v < 3.0.0", "elm/random": "1.0.0 <= v < 2.0.0" } } From efe1b4a43ace0c681057dc6106b45c5c61283d4d Mon Sep 17 00:00:00 2001 From: Ian Mackenzie Date: Sat, 30 Jun 2018 20:31:47 -0400 Subject: [PATCH 4/4] Trim down documentation a bit --- src/Axis2d.elm | 3 --- src/Axis3d.elm | 3 --- src/Direction2d.elm | 7 +++---- src/Direction3d.elm | 6 ++---- src/LineSegment2d.elm | 3 --- src/LineSegment3d.elm | 3 --- src/Point2d.elm | 3 --- src/Point3d.elm | 3 --- src/Triangle2d.elm | 3 --- src/Triangle3d.elm | 3 --- src/Vector2d.elm | 6 ++---- src/Vector3d.elm | 6 ++---- 12 files changed, 9 insertions(+), 40 deletions(-) diff --git a/src/Axis2d.elm b/src/Axis2d.elm index 61d37e84..76b35ad5 100644 --- a/src/Axis2d.elm +++ b/src/Axis2d.elm @@ -63,9 +63,6 @@ an origin point and direction. Axes have several uses, such as: # Coordinate conversions -Functions for transforming axes between local and global coordinates in -different coordinate frames. - @docs relativeTo, placeIn -} diff --git a/src/Axis3d.elm b/src/Axis3d.elm index 86757c37..a1553208 100644 --- a/src/Axis3d.elm +++ b/src/Axis3d.elm @@ -67,9 +67,6 @@ an origin point and direction. Axes have several uses, such as: # Coordinate conversions -Functions for transforming axes between local and global coordinates in -different coordinate frames. - @docs relativeTo, placeIn, projectInto -} diff --git a/src/Direction2d.elm b/src/Direction2d.elm index b9fa31a9..99fad398 100644 --- a/src/Direction2d.elm +++ b/src/Direction2d.elm @@ -101,10 +101,9 @@ several uses, such as: # Coordinate conversions -Functions for transforming directions between local and global coordinates in -different coordinate frames. Like other transformations, coordinate -transformations of directions depend only on the orientations of the relevant -frames, not the positions of their origin points. +Like other transformations, coordinate transformations of directions depend only +on the orientations of the relevant frames, not the positions of their origin +points. For the examples, assume the following frames have been defined: diff --git a/src/Direction3d.elm b/src/Direction3d.elm index 8fd29867..b9e7ff0e 100644 --- a/src/Direction3d.elm +++ b/src/Direction3d.elm @@ -103,10 +103,8 @@ several uses, such as: # Coordinate conversions -Functions for transforming directions between local and global coordinates in -different coordinate frames. Like other transformations, coordinate -transformations of directions depend only on the orientations of the relevant -frames, not their positions. +Like other transformations, coordinate transformations of directions depend only +on the orientations of the relevant frames, not their positions. For the examples, assume the following definition of a local coordinate frame, one that is rotated 30 degrees counterclockwise around the Z axis from the diff --git a/src/LineSegment2d.elm b/src/LineSegment2d.elm index 3cb036da..260ee6e8 100644 --- a/src/LineSegment2d.elm +++ b/src/LineSegment2d.elm @@ -83,9 +83,6 @@ points and forming a new line segment between the resulting points. # Coordinate conversions -Functions for transforming line segments between local and global coordinates in -different coordinate frames. - @docs relativeTo, placeIn -} diff --git a/src/LineSegment3d.elm b/src/LineSegment3d.elm index 517175ee..151708fb 100644 --- a/src/LineSegment3d.elm +++ b/src/LineSegment3d.elm @@ -79,9 +79,6 @@ points and forming a new line segment between the resulting points. # Coordinate conversions -Functions for transforming line segments between local and global coordinates in -different coordinate frames. - @docs relativeTo, placeIn, projectInto -} diff --git a/src/Point2d.elm b/src/Point2d.elm index 4adc80a7..643499db 100644 --- a/src/Point2d.elm +++ b/src/Point2d.elm @@ -91,9 +91,6 @@ like you can add two vectors. # Coordinate conversions -Functions for transforming points between local and global coordinates in -different coordinate frames. - @docs relativeTo, placeIn -} diff --git a/src/Point3d.elm b/src/Point3d.elm index 3d37de44..2b438141 100644 --- a/src/Point3d.elm +++ b/src/Point3d.elm @@ -95,9 +95,6 @@ like you can add two vectors. # Coordinate conversions -Functions for transforming points between local and global coordinates in -different coordinate frames. - @docs relativeTo, placeIn, projectInto -} diff --git a/src/Triangle2d.elm b/src/Triangle2d.elm index 12bf4474..01a76265 100644 --- a/src/Triangle2d.elm +++ b/src/Triangle2d.elm @@ -69,9 +69,6 @@ Transforming a triangle is equivalent to transforming its vertices. # Coordinate conversions -Functions for transforming triangles between local and global coordinates in -different coordinate frames. - @docs relativeTo, placeIn -} diff --git a/src/Triangle3d.elm b/src/Triangle3d.elm index 45c731c6..74ab3e3d 100644 --- a/src/Triangle3d.elm +++ b/src/Triangle3d.elm @@ -65,9 +65,6 @@ Transforming a triangle is equivalent to transforming its vertices. # Coordinate conversions -Functions for transforming triangles between local and global coordinates in -different coordinate frames. - @docs relativeTo, placeIn, projectInto -} diff --git a/src/Vector2d.elm b/src/Vector2d.elm index 9bfdd72d..6a2d0706 100644 --- a/src/Vector2d.elm +++ b/src/Vector2d.elm @@ -113,10 +113,8 @@ tail is on the axis, then mirroring/projecting its tip across/onto the axis. # Coordinate conversions -Functions for transforming vectors between local and global coordinates in -different coordinate frames. Like other transformations, coordinate conversions -of vectors depend only on the orientations of the relevant frames, not the -positions of their origin points. +Like other transformations, coordinate conversions of vectors depend only on the +orientations of the relevant frames, not the positions of their origin points. For the examples, assume the following frame has been defined: diff --git a/src/Vector3d.elm b/src/Vector3d.elm index b538044d..f4e8096e 100644 --- a/src/Vector3d.elm +++ b/src/Vector3d.elm @@ -113,10 +113,8 @@ its tip. # Coordinate conversions -Functions for transforming vectors between local and global coordinates in -different coordinate frames. Like other transformations, coordinate -transformations of vectors depend only on the orientations of the relevant -frames/sketch planes, not their positions. +Like other transformations, coordinate transformations of vectors depend only on +the orientations of the relevant frames/sketch planes, not their positions. For the examples, assume the following definition of a local coordinate frame, one that is rotated 30 degrees counterclockwise around the Z axis from the