From 72212b9cedbb1745ce0df81c0962341488f611ad Mon Sep 17 00:00:00 2001 From: Christoph Dietze Date: Sun, 19 Nov 2017 22:36:46 +0100 Subject: [PATCH] Rename project: Pythagoras-kt -> Euklid --- .gitignore | 2 +- NOTICE | 2 +- README.md | 9 ++++----- {pythagoras-kt-js => euklid-js}/build.gradle | 0 .../src/main/kotlin/euklid}/platform/JsPlatform.kt | 2 +- {pythagoras-kt-jvm => euklid-jvm}/build.gradle | 0 .../src/main/kotlin/euklid}/platform/JvmPlatform.kt | 2 +- settings.gradle | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/AbstractArc.kt | 6 +++--- .../{pythagoras => euklid}/f/AbstractRectangularShape.kt | 4 ++-- .../kotlin/{pythagoras => euklid}/f/AbstractTransform.kt | 4 ++-- .../kotlin/{pythagoras => euklid}/f/AffineTransform.kt | 6 +++--- src/main/kotlin/{pythagoras => euklid}/f/Arc.kt | 6 +++--- src/main/kotlin/{pythagoras => euklid}/f/Area.kt | 6 +++--- src/main/kotlin/{pythagoras => euklid}/f/Box.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Circle.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Crossing.kt | 4 ++-- .../kotlin/{pythagoras => euklid}/f/CrossingHelper.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/CubicCurve.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/CubicCurves.kt | 4 ++-- .../{pythagoras => euklid}/f/CurveCrossingHelper.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Dimension.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Dimensions.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Ellipse.kt | 4 ++-- .../{pythagoras => euklid}/f/FlatteningPathIterator.kt | 6 +++--- src/main/kotlin/{pythagoras => euklid}/f/Frustum.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/GeometryUtil.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IArc.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IBox.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/ICircle.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/ICubicCurve.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IDimension.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IEllipse.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/ILine.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IMatrix3.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IMatrix4.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IPlane.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IPoint.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IQuadCurve.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IQuaternion.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IRay2.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IRay3.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IRectangle.kt | 4 ++-- .../kotlin/{pythagoras => euklid}/f/IRectangularShape.kt | 4 ++-- .../kotlin/{pythagoras => euklid}/f/IRoundRectangle.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IShape.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IVector.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IVector3.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/IVector4.kt | 4 ++-- .../kotlin/{pythagoras => euklid}/f/IdentityTransform.kt | 4 ++-- .../f/IllegalPathStateException.kt | 4 ++-- .../kotlin/{pythagoras => euklid}/f/IntersectPoint.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Line.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Lines.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/MathUtil.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Matrix3.kt | 6 +++--- src/main/kotlin/{pythagoras => euklid}/f/Matrix4.kt | 8 ++++---- src/main/kotlin/{pythagoras => euklid}/f/Path.kt | 6 +++--- src/main/kotlin/{pythagoras => euklid}/f/PathIterator.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Plane.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Point.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Points.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/QuadCurve.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/QuadCurves.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Quaternion.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Ray2.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Ray3.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Rectangle.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Rectangles.kt | 4 ++-- .../kotlin/{pythagoras => euklid}/f/RoundRectangle.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Transform.kt | 6 +++--- src/main/kotlin/{pythagoras => euklid}/f/Transforms.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Vector.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Vector3.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Vector4.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/Vectors.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/XY.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/f/package-info.kt | 6 +++--- src/main/kotlin/{pythagoras => euklid}/i/Dimension.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/i/Dimensions.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/i/IDimension.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/i/IPoint.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/i/IRectangle.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/i/IShape.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/i/MathUtil.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/i/Point.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/i/Points.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/i/Rectangle.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/i/Rectangles.kt | 4 ++-- src/main/kotlin/{pythagoras => euklid}/i/package-info.kt | 6 +++--- .../kotlin/{pythagoras => euklid}/platform/Platform.kt | 2 +- .../util/NoninvertibleTransformException.kt | 4 ++-- .../util/SingularMatrixException.kt | 4 ++-- src/test/kotlin/{pythagoras => euklid}/TestUtils.kt | 2 +- src/test/kotlin/{pythagoras => euklid}/f/AreaTest.kt | 6 +++--- src/test/kotlin/{pythagoras => euklid}/f/MathUtilTest.kt | 6 +++--- .../kotlin/{pythagoras => euklid}/f/RectangleTest.kt | 6 +++--- src/test/kotlin/{pythagoras => euklid}/f/VectorTest.kt | 6 +++--- src/test/kotlin/{pythagoras => euklid}/i/MathUtilTest.kt | 4 ++-- 99 files changed, 206 insertions(+), 207 deletions(-) rename {pythagoras-kt-js => euklid-js}/build.gradle (100%) rename {pythagoras-kt-js/src/main/kotlin/pythagoras => euklid-js/src/main/kotlin/euklid}/platform/JsPlatform.kt (98%) rename {pythagoras-kt-jvm => euklid-jvm}/build.gradle (100%) rename {pythagoras-kt-jvm/src/main/kotlin/pythagoras => euklid-jvm/src/main/kotlin/euklid}/platform/JvmPlatform.kt (95%) rename src/main/kotlin/{pythagoras => euklid}/f/AbstractArc.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/AbstractRectangularShape.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/f/AbstractTransform.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/f/AffineTransform.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/Arc.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/Area.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/Box.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/Circle.kt (96%) rename src/main/kotlin/{pythagoras => euklid}/f/Crossing.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/CrossingHelper.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/CubicCurve.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/CubicCurves.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/CurveCrossingHelper.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/Dimension.kt (96%) rename src/main/kotlin/{pythagoras => euklid}/f/Dimensions.kt (93%) rename src/main/kotlin/{pythagoras => euklid}/f/Ellipse.kt (95%) rename src/main/kotlin/{pythagoras => euklid}/f/FlatteningPathIterator.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/Frustum.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/GeometryUtil.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/IArc.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/f/IBox.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/ICircle.kt (96%) rename src/main/kotlin/{pythagoras => euklid}/f/ICubicCurve.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/IDimension.kt (93%) rename src/main/kotlin/{pythagoras => euklid}/f/IEllipse.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/ILine.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/IMatrix3.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/IMatrix4.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/IPlane.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/f/IPoint.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/IQuadCurve.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/IQuaternion.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/IRay2.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/f/IRay3.kt (92%) rename src/main/kotlin/{pythagoras => euklid}/f/IRectangle.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/IRectangularShape.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/f/IRoundRectangle.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/IShape.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/f/IVector.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/IVector3.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/IVector4.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/IdentityTransform.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/f/IllegalPathStateException.kt (93%) rename src/main/kotlin/{pythagoras => euklid}/f/IntersectPoint.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/Line.kt (96%) rename src/main/kotlin/{pythagoras => euklid}/f/Lines.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/MathUtil.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/Matrix3.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/Matrix4.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/Path.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/PathIterator.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/f/Plane.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/Point.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/f/Points.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/QuadCurve.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/f/QuadCurves.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/Quaternion.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/Ray2.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/Ray3.kt (95%) rename src/main/kotlin/{pythagoras => euklid}/f/Rectangle.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/Rectangles.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/f/RoundRectangle.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/f/Transform.kt (99%) rename src/main/kotlin/{pythagoras => euklid}/f/Transforms.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/f/Vector.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/Vector3.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/Vector4.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/f/Vectors.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/f/XY.kt (93%) rename src/main/kotlin/{pythagoras => euklid}/f/package-info.kt (81%) rename src/main/kotlin/{pythagoras => euklid}/i/Dimension.kt (96%) rename src/main/kotlin/{pythagoras => euklid}/i/Dimensions.kt (92%) rename src/main/kotlin/{pythagoras => euklid}/i/IDimension.kt (93%) rename src/main/kotlin/{pythagoras => euklid}/i/IPoint.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/i/IRectangle.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/i/IShape.kt (96%) rename src/main/kotlin/{pythagoras => euklid}/i/MathUtil.kt (95%) rename src/main/kotlin/{pythagoras => euklid}/i/Point.kt (97%) rename src/main/kotlin/{pythagoras => euklid}/i/Points.kt (96%) rename src/main/kotlin/{pythagoras => euklid}/i/Rectangle.kt (98%) rename src/main/kotlin/{pythagoras => euklid}/i/Rectangles.kt (95%) rename src/main/kotlin/{pythagoras => euklid}/i/package-info.kt (84%) rename src/main/kotlin/{pythagoras => euklid}/platform/Platform.kt (96%) rename src/main/kotlin/{pythagoras => euklid}/util/NoninvertibleTransformException.kt (91%) rename src/main/kotlin/{pythagoras => euklid}/util/SingularMatrixException.kt (92%) rename src/test/kotlin/{pythagoras => euklid}/TestUtils.kt (94%) rename src/test/kotlin/{pythagoras => euklid}/f/AreaTest.kt (96%) rename src/test/kotlin/{pythagoras => euklid}/f/MathUtilTest.kt (96%) rename src/test/kotlin/{pythagoras => euklid}/f/RectangleTest.kt (91%) rename src/test/kotlin/{pythagoras => euklid}/f/VectorTest.kt (96%) rename src/test/kotlin/{pythagoras => euklid}/i/MathUtilTest.kt (93%) diff --git a/.gitignore b/.gitignore index 77fb697..315e6fa 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,5 @@ target .project .classpath /bazel-* -pythagoras-kt-js/node_modules +euklid-js/node_modules .idea diff --git a/NOTICE b/NOTICE index 745a607..056f9de 100644 --- a/NOTICE +++ b/NOTICE @@ -1,4 +1,4 @@ -The Pythagoras-kt project is derived from code from the Pythagoras Project (https://github.com/samskivert/pythagoras) +The Euklid project is derived from code from the Pythagoras project (https://github.com/samskivert/pythagoras) for which the following notice applies: Licensed under the Apache License, Version 2.0 diff --git a/README.md b/README.md index 17db794..f51a693 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ -# Pythagoras-kt +# Euklid -[![Build Status](https://travis-ci.org/cdietze/pythagoras-kt.svg?branch=master)](https://travis-ci.org/cdietze/pythagoras-kt) +[![Build Status](https://travis-ci.org/cdietze/euklid.svg?branch=master)](https://travis-ci.org/cdietze/euklid) -Pythagoras-kt is a collection of geometry classes that aims to provide performant, -portable geometry routines. Written in Kotlin. +Euklid is a cross-platform geometry library in Kotlin. It is a port in Kotlin of the [Pythagoras project in java](https://github.com/samskivert/pythagoras). @@ -18,6 +17,6 @@ Invoke `./gradlew build` to build the library or License --- -Pythagoras-kt is released under the Apache License, Version 2.0 which can be found +Euklid is released under the Apache License, Version 2.0 which can be found in the `LICENSE` file and at http://www.apache.org/licenses/LICENSE-2.0 on the web. diff --git a/pythagoras-kt-js/build.gradle b/euklid-js/build.gradle similarity index 100% rename from pythagoras-kt-js/build.gradle rename to euklid-js/build.gradle diff --git a/pythagoras-kt-js/src/main/kotlin/pythagoras/platform/JsPlatform.kt b/euklid-js/src/main/kotlin/euklid/platform/JsPlatform.kt similarity index 98% rename from pythagoras-kt-js/src/main/kotlin/pythagoras/platform/JsPlatform.kt rename to euklid-js/src/main/kotlin/euklid/platform/JsPlatform.kt index 7ff0043..2e3166c 100644 --- a/pythagoras-kt-js/src/main/kotlin/pythagoras/platform/JsPlatform.kt +++ b/euklid-js/src/main/kotlin/euklid/platform/JsPlatform.kt @@ -1,4 +1,4 @@ -package pythagoras.platform +package euklid.platform actual fun arrayCopy(src: ByteArray, srcPos: Int, dest: ByteArray, destPos: Int, length: Int) { if (srcPos < 0 || destPos < 0 || length < 0 || srcPos + length > src.size || destPos + length > dest.size) { diff --git a/pythagoras-kt-jvm/build.gradle b/euklid-jvm/build.gradle similarity index 100% rename from pythagoras-kt-jvm/build.gradle rename to euklid-jvm/build.gradle diff --git a/pythagoras-kt-jvm/src/main/kotlin/pythagoras/platform/JvmPlatform.kt b/euklid-jvm/src/main/kotlin/euklid/platform/JvmPlatform.kt similarity index 95% rename from pythagoras-kt-jvm/src/main/kotlin/pythagoras/platform/JvmPlatform.kt rename to euklid-jvm/src/main/kotlin/euklid/platform/JvmPlatform.kt index cc79de9..40a9eda 100644 --- a/pythagoras-kt-jvm/src/main/kotlin/pythagoras/platform/JvmPlatform.kt +++ b/euklid-jvm/src/main/kotlin/euklid/platform/JvmPlatform.kt @@ -1,4 +1,4 @@ -package pythagoras.platform +package euklid.platform actual fun arrayCopy(src: ByteArray, srcPos: Int, dest: ByteArray, destPos: Int, length: Int) { java.lang.System.arraycopy(src, srcPos, dest, destPos, length) diff --git a/settings.gradle b/settings.gradle index fe6e89a..17169d0 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,3 +1,3 @@ -rootProject.name = 'pythagoras-kt' +rootProject.name = 'euklid' -include 'pythagoras-kt-jvm', 'pythagoras-kt-js' +include 'euklid-jvm', 'euklid-js' diff --git a/src/main/kotlin/pythagoras/f/AbstractArc.kt b/src/main/kotlin/euklid/f/AbstractArc.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/AbstractArc.kt rename to src/main/kotlin/euklid/f/AbstractArc.kt index 7ff01ee..0acc051 100644 --- a/src/main/kotlin/pythagoras/f/AbstractArc.kt +++ b/src/main/kotlin/euklid/f/AbstractArc.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,9 +14,9 @@ * limitations under the License. */ -package pythagoras.f +package euklid.f -import pythagoras.f.IArc.ArcType +import euklid.f.IArc.ArcType import kotlin.math.* /** diff --git a/src/main/kotlin/pythagoras/f/AbstractRectangularShape.kt b/src/main/kotlin/euklid/f/AbstractRectangularShape.kt similarity index 97% rename from src/main/kotlin/pythagoras/f/AbstractRectangularShape.kt rename to src/main/kotlin/euklid/f/AbstractRectangularShape.kt index c8122d3..b9a3edd 100644 --- a/src/main/kotlin/pythagoras/f/AbstractRectangularShape.kt +++ b/src/main/kotlin/euklid/f/AbstractRectangularShape.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.abs diff --git a/src/main/kotlin/pythagoras/f/AbstractTransform.kt b/src/main/kotlin/euklid/f/AbstractTransform.kt similarity index 97% rename from src/main/kotlin/pythagoras/f/AbstractTransform.kt rename to src/main/kotlin/euklid/f/AbstractTransform.kt index f86b782..b2c8e83 100644 --- a/src/main/kotlin/pythagoras/f/AbstractTransform.kt +++ b/src/main/kotlin/euklid/f/AbstractTransform.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Implements some code shared by the various [Transform] implementations. diff --git a/src/main/kotlin/pythagoras/f/AffineTransform.kt b/src/main/kotlin/euklid/f/AffineTransform.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/AffineTransform.kt rename to src/main/kotlin/euklid/f/AffineTransform.kt index bd9a804..cd900a9 100644 --- a/src/main/kotlin/pythagoras/f/AffineTransform.kt +++ b/src/main/kotlin/euklid/f/AffineTransform.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,9 +16,9 @@ -package pythagoras.f +package euklid.f -import pythagoras.util.NoninvertibleTransformException +import euklid.util.NoninvertibleTransformException import kotlin.math.* /** diff --git a/src/main/kotlin/pythagoras/f/Arc.kt b/src/main/kotlin/euklid/f/Arc.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/Arc.kt rename to src/main/kotlin/euklid/f/Arc.kt index d00bb31..20fadd4 100644 --- a/src/main/kotlin/pythagoras/f/Arc.kt +++ b/src/main/kotlin/euklid/f/Arc.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,9 +16,9 @@ -package pythagoras.f +package euklid.f -import pythagoras.f.IArc.ArcType +import euklid.f.IArc.ArcType import kotlin.math.abs import kotlin.math.atan2 import kotlin.math.cos diff --git a/src/main/kotlin/pythagoras/f/Area.kt b/src/main/kotlin/euklid/f/Area.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/Area.kt rename to src/main/kotlin/euklid/f/Area.kt index 1138c7a..29d5020 100644 --- a/src/main/kotlin/pythagoras/f/Area.kt +++ b/src/main/kotlin/euklid/f/Area.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,9 +16,9 @@ -package pythagoras.f +package euklid.f -import pythagoras.platform.arrayCopy +import euklid.platform.arrayCopy import kotlin.math.abs import kotlin.math.max import kotlin.math.min diff --git a/src/main/kotlin/pythagoras/f/Box.kt b/src/main/kotlin/euklid/f/Box.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/Box.kt rename to src/main/kotlin/euklid/f/Box.kt index 7a15a23..68999cf 100644 --- a/src/main/kotlin/pythagoras/f/Box.kt +++ b/src/main/kotlin/euklid/f/Box.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.abs import kotlin.math.max diff --git a/src/main/kotlin/pythagoras/f/Circle.kt b/src/main/kotlin/euklid/f/Circle.kt similarity index 96% rename from src/main/kotlin/pythagoras/f/Circle.kt rename to src/main/kotlin/euklid/f/Circle.kt index 72db10a..bc98b9f 100644 --- a/src/main/kotlin/pythagoras/f/Circle.kt +++ b/src/main/kotlin/euklid/f/Circle.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Represents a circle on a plane. diff --git a/src/main/kotlin/pythagoras/f/Crossing.kt b/src/main/kotlin/euklid/f/Crossing.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/Crossing.kt rename to src/main/kotlin/euklid/f/Crossing.kt index 130484b..993c784 100644 --- a/src/main/kotlin/pythagoras/f/Crossing.kt +++ b/src/main/kotlin/euklid/f/Crossing.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.* diff --git a/src/main/kotlin/pythagoras/f/CrossingHelper.kt b/src/main/kotlin/euklid/f/CrossingHelper.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/CrossingHelper.kt rename to src/main/kotlin/euklid/f/CrossingHelper.kt index 5a26e93..9a29373 100644 --- a/src/main/kotlin/pythagoras/f/CrossingHelper.kt +++ b/src/main/kotlin/euklid/f/CrossingHelper.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * An internal class used to compute crossings. diff --git a/src/main/kotlin/pythagoras/f/CubicCurve.kt b/src/main/kotlin/euklid/f/CubicCurve.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/CubicCurve.kt rename to src/main/kotlin/euklid/f/CubicCurve.kt index 9dba00f..5191f34 100644 --- a/src/main/kotlin/pythagoras/f/CubicCurve.kt +++ b/src/main/kotlin/euklid/f/CubicCurve.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Represents a cubic curve. diff --git a/src/main/kotlin/pythagoras/f/CubicCurves.kt b/src/main/kotlin/euklid/f/CubicCurves.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/CubicCurves.kt rename to src/main/kotlin/euklid/f/CubicCurves.kt index 36969c4..f49a7fb 100644 --- a/src/main/kotlin/pythagoras/f/CubicCurves.kt +++ b/src/main/kotlin/euklid/f/CubicCurves.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.max import kotlin.math.sqrt diff --git a/src/main/kotlin/pythagoras/f/CurveCrossingHelper.kt b/src/main/kotlin/euklid/f/CurveCrossingHelper.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/CurveCrossingHelper.kt rename to src/main/kotlin/euklid/f/CurveCrossingHelper.kt index 8aa6d6e..78b33d0 100644 --- a/src/main/kotlin/pythagoras/f/CurveCrossingHelper.kt +++ b/src/main/kotlin/euklid/f/CurveCrossingHelper.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.abs import kotlin.math.pow diff --git a/src/main/kotlin/pythagoras/f/Dimension.kt b/src/main/kotlin/euklid/f/Dimension.kt similarity index 96% rename from src/main/kotlin/pythagoras/f/Dimension.kt rename to src/main/kotlin/euklid/f/Dimension.kt index 00d7784..0aa2457 100644 --- a/src/main/kotlin/pythagoras/f/Dimension.kt +++ b/src/main/kotlin/euklid/f/Dimension.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ -package pythagoras.f +package euklid.f /** * Represents a magnitude in two dimensions. diff --git a/src/main/kotlin/pythagoras/f/Dimensions.kt b/src/main/kotlin/euklid/f/Dimensions.kt similarity index 93% rename from src/main/kotlin/pythagoras/f/Dimensions.kt rename to src/main/kotlin/euklid/f/Dimensions.kt index f3bf17f..bf5ead9 100644 --- a/src/main/kotlin/pythagoras/f/Dimensions.kt +++ b/src/main/kotlin/euklid/f/Dimensions.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Dimension-related utility methods. diff --git a/src/main/kotlin/pythagoras/f/Ellipse.kt b/src/main/kotlin/euklid/f/Ellipse.kt similarity index 95% rename from src/main/kotlin/pythagoras/f/Ellipse.kt rename to src/main/kotlin/euklid/f/Ellipse.kt index 9441215..6e66b55 100644 --- a/src/main/kotlin/pythagoras/f/Ellipse.kt +++ b/src/main/kotlin/euklid/f/Ellipse.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Represents an ellipse that is described by a framing rectangle. diff --git a/src/main/kotlin/pythagoras/f/FlatteningPathIterator.kt b/src/main/kotlin/euklid/f/FlatteningPathIterator.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/FlatteningPathIterator.kt rename to src/main/kotlin/euklid/f/FlatteningPathIterator.kt index cd24435..a63c84f 100644 --- a/src/main/kotlin/pythagoras/f/FlatteningPathIterator.kt +++ b/src/main/kotlin/euklid/f/FlatteningPathIterator.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,9 +16,9 @@ -package pythagoras.f +package euklid.f -import pythagoras.platform.arrayCopy +import euklid.platform.arrayCopy import kotlin.math.min /** diff --git a/src/main/kotlin/pythagoras/f/Frustum.kt b/src/main/kotlin/euklid/f/Frustum.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/Frustum.kt rename to src/main/kotlin/euklid/f/Frustum.kt index f0b2acb..0bb2acc 100644 --- a/src/main/kotlin/pythagoras/f/Frustum.kt +++ b/src/main/kotlin/euklid/f/Frustum.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.max import kotlin.math.tan diff --git a/src/main/kotlin/pythagoras/f/GeometryUtil.kt b/src/main/kotlin/euklid/f/GeometryUtil.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/GeometryUtil.kt rename to src/main/kotlin/euklid/f/GeometryUtil.kt index ca76c95..d9b5147 100644 --- a/src/main/kotlin/pythagoras/f/GeometryUtil.kt +++ b/src/main/kotlin/euklid/f/GeometryUtil.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.* diff --git a/src/main/kotlin/pythagoras/f/IArc.kt b/src/main/kotlin/euklid/f/IArc.kt similarity index 97% rename from src/main/kotlin/pythagoras/f/IArc.kt rename to src/main/kotlin/euklid/f/IArc.kt index 05d9cf5..73db7f9 100644 --- a/src/main/kotlin/pythagoras/f/IArc.kt +++ b/src/main/kotlin/euklid/f/IArc.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Provides read-only access to an [Arc]. diff --git a/src/main/kotlin/pythagoras/f/IBox.kt b/src/main/kotlin/euklid/f/IBox.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/IBox.kt rename to src/main/kotlin/euklid/f/IBox.kt index ea34e31..81bba5b 100644 --- a/src/main/kotlin/pythagoras/f/IBox.kt +++ b/src/main/kotlin/euklid/f/IBox.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Does something extraordinary. diff --git a/src/main/kotlin/pythagoras/f/ICircle.kt b/src/main/kotlin/euklid/f/ICircle.kt similarity index 96% rename from src/main/kotlin/pythagoras/f/ICircle.kt rename to src/main/kotlin/euklid/f/ICircle.kt index 5a71016..dc91c51 100644 --- a/src/main/kotlin/pythagoras/f/ICircle.kt +++ b/src/main/kotlin/euklid/f/ICircle.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Provides read-only access to a [Circle]. diff --git a/src/main/kotlin/pythagoras/f/ICubicCurve.kt b/src/main/kotlin/euklid/f/ICubicCurve.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/ICubicCurve.kt rename to src/main/kotlin/euklid/f/ICubicCurve.kt index 255c180..85d617d 100644 --- a/src/main/kotlin/pythagoras/f/ICubicCurve.kt +++ b/src/main/kotlin/euklid/f/ICubicCurve.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.max import kotlin.math.min diff --git a/src/main/kotlin/pythagoras/f/IDimension.kt b/src/main/kotlin/euklid/f/IDimension.kt similarity index 93% rename from src/main/kotlin/pythagoras/f/IDimension.kt rename to src/main/kotlin/euklid/f/IDimension.kt index a0c44fa..9ddc43e 100644 --- a/src/main/kotlin/pythagoras/f/IDimension.kt +++ b/src/main/kotlin/euklid/f/IDimension.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ -package pythagoras.f +package euklid.f /** * Provides read-only access to a [Dimension]. diff --git a/src/main/kotlin/pythagoras/f/IEllipse.kt b/src/main/kotlin/euklid/f/IEllipse.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/IEllipse.kt rename to src/main/kotlin/euklid/f/IEllipse.kt index e62ea2d..5dc1ec8 100644 --- a/src/main/kotlin/pythagoras/f/IEllipse.kt +++ b/src/main/kotlin/euklid/f/IEllipse.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.sqrt diff --git a/src/main/kotlin/pythagoras/f/ILine.kt b/src/main/kotlin/euklid/f/ILine.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/ILine.kt rename to src/main/kotlin/euklid/f/ILine.kt index 0162806..6bcd2e2 100644 --- a/src/main/kotlin/pythagoras/f/ILine.kt +++ b/src/main/kotlin/euklid/f/ILine.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Provides read-only access to a [Line]. diff --git a/src/main/kotlin/pythagoras/f/IMatrix3.kt b/src/main/kotlin/euklid/f/IMatrix3.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/IMatrix3.kt rename to src/main/kotlin/euklid/f/IMatrix3.kt index 297408a..eddfbc8 100644 --- a/src/main/kotlin/pythagoras/f/IMatrix3.kt +++ b/src/main/kotlin/euklid/f/IMatrix3.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Provides read-only access to a [Matrix3]. diff --git a/src/main/kotlin/pythagoras/f/IMatrix4.kt b/src/main/kotlin/euklid/f/IMatrix4.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/IMatrix4.kt rename to src/main/kotlin/euklid/f/IMatrix4.kt index a771d44..618b57e 100644 --- a/src/main/kotlin/pythagoras/f/IMatrix4.kt +++ b/src/main/kotlin/euklid/f/IMatrix4.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Provides read-only access to a [Matrix4]. diff --git a/src/main/kotlin/pythagoras/f/IPlane.kt b/src/main/kotlin/euklid/f/IPlane.kt similarity index 97% rename from src/main/kotlin/pythagoras/f/IPlane.kt rename to src/main/kotlin/euklid/f/IPlane.kt index 987618a..b7d6241 100644 --- a/src/main/kotlin/pythagoras/f/IPlane.kt +++ b/src/main/kotlin/euklid/f/IPlane.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.abs diff --git a/src/main/kotlin/pythagoras/f/IPoint.kt b/src/main/kotlin/euklid/f/IPoint.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/IPoint.kt rename to src/main/kotlin/euklid/f/IPoint.kt index 9f47fd5..67b7878 100644 --- a/src/main/kotlin/pythagoras/f/IPoint.kt +++ b/src/main/kotlin/euklid/f/IPoint.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.atan2 import kotlin.math.cos diff --git a/src/main/kotlin/pythagoras/f/IQuadCurve.kt b/src/main/kotlin/euklid/f/IQuadCurve.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/IQuadCurve.kt rename to src/main/kotlin/euklid/f/IQuadCurve.kt index 0c874ba..c6645f7 100644 --- a/src/main/kotlin/pythagoras/f/IQuadCurve.kt +++ b/src/main/kotlin/euklid/f/IQuadCurve.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.max import kotlin.math.min diff --git a/src/main/kotlin/pythagoras/f/IQuaternion.kt b/src/main/kotlin/euklid/f/IQuaternion.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/IQuaternion.kt rename to src/main/kotlin/euklid/f/IQuaternion.kt index c491288..5aab422 100644 --- a/src/main/kotlin/pythagoras/f/IQuaternion.kt +++ b/src/main/kotlin/euklid/f/IQuaternion.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Provides read-only access to a [Quaternion]. diff --git a/src/main/kotlin/pythagoras/f/IRay2.kt b/src/main/kotlin/euklid/f/IRay2.kt similarity index 97% rename from src/main/kotlin/pythagoras/f/IRay2.kt rename to src/main/kotlin/euklid/f/IRay2.kt index a162258..145cb27 100644 --- a/src/main/kotlin/pythagoras/f/IRay2.kt +++ b/src/main/kotlin/euklid/f/IRay2.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Provides read-only access to a [Ray2]. diff --git a/src/main/kotlin/pythagoras/f/IRay3.kt b/src/main/kotlin/euklid/f/IRay3.kt similarity index 92% rename from src/main/kotlin/pythagoras/f/IRay3.kt rename to src/main/kotlin/euklid/f/IRay3.kt index 40048b8..5b6fb93 100644 --- a/src/main/kotlin/pythagoras/f/IRay3.kt +++ b/src/main/kotlin/euklid/f/IRay3.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Provides read-only access to a [Ray3]. diff --git a/src/main/kotlin/pythagoras/f/IRectangle.kt b/src/main/kotlin/euklid/f/IRectangle.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/IRectangle.kt rename to src/main/kotlin/euklid/f/IRectangle.kt index ec335d6..d012d47 100644 --- a/src/main/kotlin/pythagoras/f/IRectangle.kt +++ b/src/main/kotlin/euklid/f/IRectangle.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.max import kotlin.math.min diff --git a/src/main/kotlin/pythagoras/f/IRectangularShape.kt b/src/main/kotlin/euklid/f/IRectangularShape.kt similarity index 97% rename from src/main/kotlin/pythagoras/f/IRectangularShape.kt rename to src/main/kotlin/euklid/f/IRectangularShape.kt index 25f6ae5..4470494 100644 --- a/src/main/kotlin/pythagoras/f/IRectangularShape.kt +++ b/src/main/kotlin/euklid/f/IRectangularShape.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * An interface implemented by [IShape] classes whose geometry is defined by a rectangular diff --git a/src/main/kotlin/pythagoras/f/IRoundRectangle.kt b/src/main/kotlin/euklid/f/IRoundRectangle.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/IRoundRectangle.kt rename to src/main/kotlin/euklid/f/IRoundRectangle.kt index 7d66b7c..85c9b0c 100644 --- a/src/main/kotlin/pythagoras/f/IRoundRectangle.kt +++ b/src/main/kotlin/euklid/f/IRoundRectangle.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.min import kotlin.math.sqrt diff --git a/src/main/kotlin/pythagoras/f/IShape.kt b/src/main/kotlin/euklid/f/IShape.kt similarity index 97% rename from src/main/kotlin/pythagoras/f/IShape.kt rename to src/main/kotlin/euklid/f/IShape.kt index cb1a758..cab2052 100644 --- a/src/main/kotlin/pythagoras/f/IShape.kt +++ b/src/main/kotlin/euklid/f/IShape.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * An interface provided by all shapes. diff --git a/src/main/kotlin/pythagoras/f/IVector.kt b/src/main/kotlin/euklid/f/IVector.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/IVector.kt rename to src/main/kotlin/euklid/f/IVector.kt index b9ede8a..f81ebb5 100644 --- a/src/main/kotlin/pythagoras/f/IVector.kt +++ b/src/main/kotlin/euklid/f/IVector.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.* diff --git a/src/main/kotlin/pythagoras/f/IVector3.kt b/src/main/kotlin/euklid/f/IVector3.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/IVector3.kt rename to src/main/kotlin/euklid/f/IVector3.kt index 77bbf1f..9e3d931 100644 --- a/src/main/kotlin/pythagoras/f/IVector3.kt +++ b/src/main/kotlin/euklid/f/IVector3.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.abs import kotlin.math.acos diff --git a/src/main/kotlin/pythagoras/f/IVector4.kt b/src/main/kotlin/euklid/f/IVector4.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/IVector4.kt rename to src/main/kotlin/euklid/f/IVector4.kt index d6ab50c..a3a66f3 100644 --- a/src/main/kotlin/pythagoras/f/IVector4.kt +++ b/src/main/kotlin/euklid/f/IVector4.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Provides read-only access to a [Vector4]. diff --git a/src/main/kotlin/pythagoras/f/IdentityTransform.kt b/src/main/kotlin/euklid/f/IdentityTransform.kt similarity index 97% rename from src/main/kotlin/pythagoras/f/IdentityTransform.kt rename to src/main/kotlin/euklid/f/IdentityTransform.kt index 3379149..3bf19a0 100644 --- a/src/main/kotlin/pythagoras/f/IdentityTransform.kt +++ b/src/main/kotlin/euklid/f/IdentityTransform.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Implements the identity transform. diff --git a/src/main/kotlin/pythagoras/f/IllegalPathStateException.kt b/src/main/kotlin/euklid/f/IllegalPathStateException.kt similarity index 93% rename from src/main/kotlin/pythagoras/f/IllegalPathStateException.kt rename to src/main/kotlin/euklid/f/IllegalPathStateException.kt index 37fc2ac..97ebd51 100644 --- a/src/main/kotlin/pythagoras/f/IllegalPathStateException.kt +++ b/src/main/kotlin/euklid/f/IllegalPathStateException.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * An exception thrown if an operation is performed on a [Path] that is in an illegal state diff --git a/src/main/kotlin/pythagoras/f/IntersectPoint.kt b/src/main/kotlin/euklid/f/IntersectPoint.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/IntersectPoint.kt rename to src/main/kotlin/euklid/f/IntersectPoint.kt index be452c8..a7b3dcb 100644 --- a/src/main/kotlin/pythagoras/f/IntersectPoint.kt +++ b/src/main/kotlin/euklid/f/IntersectPoint.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * An internal helper class that represents the intersection point of two edges. diff --git a/src/main/kotlin/pythagoras/f/Line.kt b/src/main/kotlin/euklid/f/Line.kt similarity index 96% rename from src/main/kotlin/pythagoras/f/Line.kt rename to src/main/kotlin/euklid/f/Line.kt index 0e62cbd..ab6131a 100644 --- a/src/main/kotlin/pythagoras/f/Line.kt +++ b/src/main/kotlin/euklid/f/Line.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Represents a line segment. diff --git a/src/main/kotlin/pythagoras/f/Lines.kt b/src/main/kotlin/euklid/f/Lines.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/Lines.kt rename to src/main/kotlin/euklid/f/Lines.kt index 49c9a0b..ddf79cf 100644 --- a/src/main/kotlin/pythagoras/f/Lines.kt +++ b/src/main/kotlin/euklid/f/Lines.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.sqrt diff --git a/src/main/kotlin/pythagoras/f/MathUtil.kt b/src/main/kotlin/euklid/f/MathUtil.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/MathUtil.kt rename to src/main/kotlin/euklid/f/MathUtil.kt index 382506a..cade0b4 100644 --- a/src/main/kotlin/pythagoras/f/MathUtil.kt +++ b/src/main/kotlin/euklid/f/MathUtil.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.abs import kotlin.math.ln diff --git a/src/main/kotlin/pythagoras/f/Matrix3.kt b/src/main/kotlin/euklid/f/Matrix3.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/Matrix3.kt rename to src/main/kotlin/euklid/f/Matrix3.kt index c9dd3ba..68bd5b5 100644 --- a/src/main/kotlin/pythagoras/f/Matrix3.kt +++ b/src/main/kotlin/euklid/f/Matrix3.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,9 +14,9 @@ * limitations under the License. */ -package pythagoras.f +package euklid.f -import pythagoras.util.SingularMatrixException +import euklid.util.SingularMatrixException import kotlin.math.* /** diff --git a/src/main/kotlin/pythagoras/f/Matrix4.kt b/src/main/kotlin/euklid/f/Matrix4.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/Matrix4.kt rename to src/main/kotlin/euklid/f/Matrix4.kt index fdcda6f..4b293cd 100644 --- a/src/main/kotlin/pythagoras/f/Matrix4.kt +++ b/src/main/kotlin/euklid/f/Matrix4.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,10 +16,10 @@ -package pythagoras.f +package euklid.f -import pythagoras.f.MathUtil.cbrt -import pythagoras.util.SingularMatrixException +import euklid.f.MathUtil.cbrt +import euklid.util.SingularMatrixException import kotlin.math.* /** diff --git a/src/main/kotlin/pythagoras/f/Path.kt b/src/main/kotlin/euklid/f/Path.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/Path.kt rename to src/main/kotlin/euklid/f/Path.kt index 4212d19..f6c844f 100644 --- a/src/main/kotlin/pythagoras/f/Path.kt +++ b/src/main/kotlin/euklid/f/Path.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,9 +16,9 @@ -package pythagoras.f +package euklid.f -import pythagoras.platform.arrayCopy +import euklid.platform.arrayCopy import kotlin.math.max /** diff --git a/src/main/kotlin/pythagoras/f/PathIterator.kt b/src/main/kotlin/euklid/f/PathIterator.kt similarity index 97% rename from src/main/kotlin/pythagoras/f/PathIterator.kt rename to src/main/kotlin/euklid/f/PathIterator.kt index a72faf5..f493fc1 100644 --- a/src/main/kotlin/pythagoras/f/PathIterator.kt +++ b/src/main/kotlin/euklid/f/PathIterator.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Used to return the boundary of an [IShape], one segment at a time. diff --git a/src/main/kotlin/pythagoras/f/Plane.kt b/src/main/kotlin/euklid/f/Plane.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/Plane.kt rename to src/main/kotlin/euklid/f/Plane.kt index 629933e..c05c0a5 100644 --- a/src/main/kotlin/pythagoras/f/Plane.kt +++ b/src/main/kotlin/euklid/f/Plane.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * A plane consisting of a unit `normal` and a `constant`. diff --git a/src/main/kotlin/pythagoras/f/Point.kt b/src/main/kotlin/euklid/f/Point.kt similarity index 97% rename from src/main/kotlin/pythagoras/f/Point.kt rename to src/main/kotlin/euklid/f/Point.kt index 2a4375f..8603b95 100644 --- a/src/main/kotlin/pythagoras/f/Point.kt +++ b/src/main/kotlin/euklid/f/Point.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Represents a point on a plane. diff --git a/src/main/kotlin/pythagoras/f/Points.kt b/src/main/kotlin/euklid/f/Points.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/Points.kt rename to src/main/kotlin/euklid/f/Points.kt index 40eab27..72190db 100644 --- a/src/main/kotlin/pythagoras/f/Points.kt +++ b/src/main/kotlin/euklid/f/Points.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.abs import kotlin.math.cos diff --git a/src/main/kotlin/pythagoras/f/QuadCurve.kt b/src/main/kotlin/euklid/f/QuadCurve.kt similarity index 97% rename from src/main/kotlin/pythagoras/f/QuadCurve.kt rename to src/main/kotlin/euklid/f/QuadCurve.kt index 3d3a927..14e2a77 100644 --- a/src/main/kotlin/pythagoras/f/QuadCurve.kt +++ b/src/main/kotlin/euklid/f/QuadCurve.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Represents a quadratic curve. diff --git a/src/main/kotlin/pythagoras/f/QuadCurves.kt b/src/main/kotlin/euklid/f/QuadCurves.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/QuadCurves.kt rename to src/main/kotlin/euklid/f/QuadCurves.kt index 1e30582..d7478c3 100644 --- a/src/main/kotlin/pythagoras/f/QuadCurves.kt +++ b/src/main/kotlin/euklid/f/QuadCurves.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Quad curve-related utility methods. diff --git a/src/main/kotlin/pythagoras/f/Quaternion.kt b/src/main/kotlin/euklid/f/Quaternion.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/Quaternion.kt rename to src/main/kotlin/euklid/f/Quaternion.kt index c87d4b0..b35adbe 100644 --- a/src/main/kotlin/pythagoras/f/Quaternion.kt +++ b/src/main/kotlin/euklid/f/Quaternion.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.* diff --git a/src/main/kotlin/pythagoras/f/Ray2.kt b/src/main/kotlin/euklid/f/Ray2.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/Ray2.kt rename to src/main/kotlin/euklid/f/Ray2.kt index 7a105c1..d50d6fe 100644 --- a/src/main/kotlin/pythagoras/f/Ray2.kt +++ b/src/main/kotlin/euklid/f/Ray2.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.abs import kotlin.math.hypot diff --git a/src/main/kotlin/pythagoras/f/Ray3.kt b/src/main/kotlin/euklid/f/Ray3.kt similarity index 95% rename from src/main/kotlin/pythagoras/f/Ray3.kt rename to src/main/kotlin/euklid/f/Ray3.kt index 659bb86..3d1b339 100644 --- a/src/main/kotlin/pythagoras/f/Ray3.kt +++ b/src/main/kotlin/euklid/f/Ray3.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * A ray consisting of an origin point and a unit direction vector. diff --git a/src/main/kotlin/pythagoras/f/Rectangle.kt b/src/main/kotlin/euklid/f/Rectangle.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/Rectangle.kt rename to src/main/kotlin/euklid/f/Rectangle.kt index 2f8c229..31c4335 100644 --- a/src/main/kotlin/pythagoras/f/Rectangle.kt +++ b/src/main/kotlin/euklid/f/Rectangle.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ -package pythagoras.f +package euklid.f import kotlin.math.max import kotlin.math.min diff --git a/src/main/kotlin/pythagoras/f/Rectangles.kt b/src/main/kotlin/euklid/f/Rectangles.kt similarity index 97% rename from src/main/kotlin/pythagoras/f/Rectangles.kt rename to src/main/kotlin/euklid/f/Rectangles.kt index c561db6..1a31038 100644 --- a/src/main/kotlin/pythagoras/f/Rectangles.kt +++ b/src/main/kotlin/euklid/f/Rectangles.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.max import kotlin.math.min diff --git a/src/main/kotlin/pythagoras/f/RoundRectangle.kt b/src/main/kotlin/euklid/f/RoundRectangle.kt similarity index 97% rename from src/main/kotlin/pythagoras/f/RoundRectangle.kt rename to src/main/kotlin/euklid/f/RoundRectangle.kt index 764557d..05a971c 100644 --- a/src/main/kotlin/pythagoras/f/RoundRectangle.kt +++ b/src/main/kotlin/euklid/f/RoundRectangle.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Represents a rectangle with rounded corners, defined by an arc width and height. diff --git a/src/main/kotlin/pythagoras/f/Transform.kt b/src/main/kotlin/euklid/f/Transform.kt similarity index 99% rename from src/main/kotlin/pythagoras/f/Transform.kt rename to src/main/kotlin/euklid/f/Transform.kt index ab46a6a..b1de20d 100644 --- a/src/main/kotlin/pythagoras/f/Transform.kt +++ b/src/main/kotlin/euklid/f/Transform.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,9 +16,9 @@ -package pythagoras.f +package euklid.f -import pythagoras.util.NoninvertibleTransformException +import euklid.util.NoninvertibleTransformException /** * Represents a geometric transform. Specialized implementations exist for identity, rigid body, diff --git a/src/main/kotlin/pythagoras/f/Transforms.kt b/src/main/kotlin/euklid/f/Transforms.kt similarity index 97% rename from src/main/kotlin/pythagoras/f/Transforms.kt rename to src/main/kotlin/euklid/f/Transforms.kt index 02343db..ff8642c 100644 --- a/src/main/kotlin/pythagoras/f/Transforms.kt +++ b/src/main/kotlin/euklid/f/Transforms.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * [Transform] related utility methods. diff --git a/src/main/kotlin/pythagoras/f/Vector.kt b/src/main/kotlin/euklid/f/Vector.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/Vector.kt rename to src/main/kotlin/euklid/f/Vector.kt index 2af4299..95c0c78 100644 --- a/src/main/kotlin/pythagoras/f/Vector.kt +++ b/src/main/kotlin/euklid/f/Vector.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ -package pythagoras.f +package euklid.f import kotlin.math.cos import kotlin.math.sin diff --git a/src/main/kotlin/pythagoras/f/Vector3.kt b/src/main/kotlin/euklid/f/Vector3.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/Vector3.kt rename to src/main/kotlin/euklid/f/Vector3.kt index 8c9dbe7..5ee3b23 100644 --- a/src/main/kotlin/pythagoras/f/Vector3.kt +++ b/src/main/kotlin/euklid/f/Vector3.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * A three element vector. diff --git a/src/main/kotlin/pythagoras/f/Vector4.kt b/src/main/kotlin/euklid/f/Vector4.kt similarity index 97% rename from src/main/kotlin/pythagoras/f/Vector4.kt rename to src/main/kotlin/euklid/f/Vector4.kt index 1ec7658..327a0ab 100644 --- a/src/main/kotlin/pythagoras/f/Vector4.kt +++ b/src/main/kotlin/euklid/f/Vector4.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * A four element vector. diff --git a/src/main/kotlin/pythagoras/f/Vectors.kt b/src/main/kotlin/euklid/f/Vectors.kt similarity index 98% rename from src/main/kotlin/pythagoras/f/Vectors.kt rename to src/main/kotlin/euklid/f/Vectors.kt index d932f02..6409371 100644 --- a/src/main/kotlin/pythagoras/f/Vectors.kt +++ b/src/main/kotlin/euklid/f/Vectors.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f import kotlin.math.abs import kotlin.math.cos diff --git a/src/main/kotlin/pythagoras/f/XY.kt b/src/main/kotlin/euklid/f/XY.kt similarity index 93% rename from src/main/kotlin/pythagoras/f/XY.kt rename to src/main/kotlin/euklid/f/XY.kt index a96ffa6..8eb95f8 100644 --- a/src/main/kotlin/pythagoras/f/XY.kt +++ b/src/main/kotlin/euklid/f/XY.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.f +package euklid.f /** * Defines an x/y coordinate. This is implemented by both `Point` and `Vector` so that diff --git a/src/main/kotlin/pythagoras/f/package-info.kt b/src/main/kotlin/euklid/f/package-info.kt similarity index 81% rename from src/main/kotlin/pythagoras/f/package-info.kt rename to src/main/kotlin/euklid/f/package-info.kt index e60e11a..72d0ef6 100644 --- a/src/main/kotlin/pythagoras/f/package-info.kt +++ b/src/main/kotlin/euklid/f/package-info.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,6 +15,6 @@ */ /** - * The Pythagoras geometry utility classes specialized on `float`. + * The Euklid geometry utility classes specialized on `float`. */ -package pythagoras.f +package euklid.f diff --git a/src/main/kotlin/pythagoras/i/Dimension.kt b/src/main/kotlin/euklid/i/Dimension.kt similarity index 96% rename from src/main/kotlin/pythagoras/i/Dimension.kt rename to src/main/kotlin/euklid/i/Dimension.kt index 30dd03e..a2a27e5 100644 --- a/src/main/kotlin/pythagoras/i/Dimension.kt +++ b/src/main/kotlin/euklid/i/Dimension.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ -package pythagoras.i +package euklid.i /** * Represents a magnitude in two dimensions. diff --git a/src/main/kotlin/pythagoras/i/Dimensions.kt b/src/main/kotlin/euklid/i/Dimensions.kt similarity index 92% rename from src/main/kotlin/pythagoras/i/Dimensions.kt rename to src/main/kotlin/euklid/i/Dimensions.kt index deea55e..674ed52 100644 --- a/src/main/kotlin/pythagoras/i/Dimensions.kt +++ b/src/main/kotlin/euklid/i/Dimensions.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.i +package euklid.i /** * Dimension-related utility methods. diff --git a/src/main/kotlin/pythagoras/i/IDimension.kt b/src/main/kotlin/euklid/i/IDimension.kt similarity index 93% rename from src/main/kotlin/pythagoras/i/IDimension.kt rename to src/main/kotlin/euklid/i/IDimension.kt index 272c099..18aeaee 100644 --- a/src/main/kotlin/pythagoras/i/IDimension.kt +++ b/src/main/kotlin/euklid/i/IDimension.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ -package pythagoras.i +package euklid.i /** * Provides read-only access to a [Dimension]. diff --git a/src/main/kotlin/pythagoras/i/IPoint.kt b/src/main/kotlin/euklid/i/IPoint.kt similarity index 97% rename from src/main/kotlin/pythagoras/i/IPoint.kt rename to src/main/kotlin/euklid/i/IPoint.kt index 6ee783d..472d45e 100644 --- a/src/main/kotlin/pythagoras/i/IPoint.kt +++ b/src/main/kotlin/euklid/i/IPoint.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ -package pythagoras.i +package euklid.i /** * Provides read-only access to a [Point]. diff --git a/src/main/kotlin/pythagoras/i/IRectangle.kt b/src/main/kotlin/euklid/i/IRectangle.kt similarity index 98% rename from src/main/kotlin/pythagoras/i/IRectangle.kt rename to src/main/kotlin/euklid/i/IRectangle.kt index f43d55c..bd9fd79 100644 --- a/src/main/kotlin/pythagoras/i/IRectangle.kt +++ b/src/main/kotlin/euklid/i/IRectangle.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ -package pythagoras.i +package euklid.i import kotlin.math.max import kotlin.math.min diff --git a/src/main/kotlin/pythagoras/i/IShape.kt b/src/main/kotlin/euklid/i/IShape.kt similarity index 96% rename from src/main/kotlin/pythagoras/i/IShape.kt rename to src/main/kotlin/euklid/i/IShape.kt index e8ca2c9..ba62732 100644 --- a/src/main/kotlin/pythagoras/i/IShape.kt +++ b/src/main/kotlin/euklid/i/IShape.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.i +package euklid.i /** * An interface provided by all shapes. diff --git a/src/main/kotlin/pythagoras/i/MathUtil.kt b/src/main/kotlin/euklid/i/MathUtil.kt similarity index 95% rename from src/main/kotlin/pythagoras/i/MathUtil.kt rename to src/main/kotlin/euklid/i/MathUtil.kt index 811eb99..bb11d73 100644 --- a/src/main/kotlin/pythagoras/i/MathUtil.kt +++ b/src/main/kotlin/euklid/i/MathUtil.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.i +package euklid.i /** * Math utility methods. diff --git a/src/main/kotlin/pythagoras/i/Point.kt b/src/main/kotlin/euklid/i/Point.kt similarity index 97% rename from src/main/kotlin/pythagoras/i/Point.kt rename to src/main/kotlin/euklid/i/Point.kt index 9f26bb2..07b59c5 100644 --- a/src/main/kotlin/pythagoras/i/Point.kt +++ b/src/main/kotlin/euklid/i/Point.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ -package pythagoras.i +package euklid.i /** * Represents a point on a plane. diff --git a/src/main/kotlin/pythagoras/i/Points.kt b/src/main/kotlin/euklid/i/Points.kt similarity index 96% rename from src/main/kotlin/pythagoras/i/Points.kt rename to src/main/kotlin/euklid/i/Points.kt index b9f5823..038e46d 100644 --- a/src/main/kotlin/pythagoras/i/Points.kt +++ b/src/main/kotlin/euklid/i/Points.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.i +package euklid.i import kotlin.math.abs import kotlin.math.sqrt diff --git a/src/main/kotlin/pythagoras/i/Rectangle.kt b/src/main/kotlin/euklid/i/Rectangle.kt similarity index 98% rename from src/main/kotlin/pythagoras/i/Rectangle.kt rename to src/main/kotlin/euklid/i/Rectangle.kt index ce25a30..3e1a248 100644 --- a/src/main/kotlin/pythagoras/i/Rectangle.kt +++ b/src/main/kotlin/euklid/i/Rectangle.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ -package pythagoras.i +package euklid.i import kotlin.math.max import kotlin.math.min diff --git a/src/main/kotlin/pythagoras/i/Rectangles.kt b/src/main/kotlin/euklid/i/Rectangles.kt similarity index 95% rename from src/main/kotlin/pythagoras/i/Rectangles.kt rename to src/main/kotlin/euklid/i/Rectangles.kt index 26938c7..4961665 100644 --- a/src/main/kotlin/pythagoras/i/Rectangles.kt +++ b/src/main/kotlin/euklid/i/Rectangles.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.i +package euklid.i import kotlin.math.max import kotlin.math.min diff --git a/src/main/kotlin/pythagoras/i/package-info.kt b/src/main/kotlin/euklid/i/package-info.kt similarity index 84% rename from src/main/kotlin/pythagoras/i/package-info.kt rename to src/main/kotlin/euklid/i/package-info.kt index e8efee7..4076340 100644 --- a/src/main/kotlin/pythagoras/i/package-info.kt +++ b/src/main/kotlin/euklid/i/package-info.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,9 +15,9 @@ */ /** - * The Pythagoras geometry utility classes specialized on `int`. Note that many of the + * The Euklid geometry utility classes specialized on `int`. Note that many of the * classes offered by the float- and double-specialized classes do not exist here. The * int-specialized code supports only points, dimensions and rectangles. If you intend to use * non-rectangular geometric shapes, you almost certainly want to be using floating-point math. */ -package pythagoras.i +package euklid.i diff --git a/src/main/kotlin/pythagoras/platform/Platform.kt b/src/main/kotlin/euklid/platform/Platform.kt similarity index 96% rename from src/main/kotlin/pythagoras/platform/Platform.kt rename to src/main/kotlin/euklid/platform/Platform.kt index ebd62c6..21f86fe 100644 --- a/src/main/kotlin/pythagoras/platform/Platform.kt +++ b/src/main/kotlin/euklid/platform/Platform.kt @@ -1,4 +1,4 @@ -package pythagoras.platform +package euklid.platform /** Copies `length` elements from `src` array starting at index `srcPos` into `dest` array starting at index `destPos` */ expect fun arrayCopy(src: ByteArray, srcPos: Int, dest: ByteArray, destPos: Int, length: Int) diff --git a/src/main/kotlin/pythagoras/util/NoninvertibleTransformException.kt b/src/main/kotlin/euklid/util/NoninvertibleTransformException.kt similarity index 91% rename from src/main/kotlin/pythagoras/util/NoninvertibleTransformException.kt rename to src/main/kotlin/euklid/util/NoninvertibleTransformException.kt index ca2282f..4e10649 100644 --- a/src/main/kotlin/pythagoras/util/NoninvertibleTransformException.kt +++ b/src/main/kotlin/euklid/util/NoninvertibleTransformException.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.util +package euklid.util /** * An exception thrown by `Transform` when a request for an inverse transform cannot be diff --git a/src/main/kotlin/pythagoras/util/SingularMatrixException.kt b/src/main/kotlin/euklid/util/SingularMatrixException.kt similarity index 92% rename from src/main/kotlin/pythagoras/util/SingularMatrixException.kt rename to src/main/kotlin/euklid/util/SingularMatrixException.kt index 8ed4db5..c28d6c3 100644 --- a/src/main/kotlin/pythagoras/util/SingularMatrixException.kt +++ b/src/main/kotlin/euklid/util/SingularMatrixException.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ -package pythagoras.util +package euklid.util /** * Thrown when inversion is attempted on a singular (non-invertible) matrix. diff --git a/src/test/kotlin/pythagoras/TestUtils.kt b/src/test/kotlin/euklid/TestUtils.kt similarity index 94% rename from src/test/kotlin/pythagoras/TestUtils.kt rename to src/test/kotlin/euklid/TestUtils.kt index c965acc..59b52d9 100644 --- a/src/test/kotlin/pythagoras/TestUtils.kt +++ b/src/test/kotlin/euklid/TestUtils.kt @@ -1,4 +1,4 @@ -package pythagoras +package euklid import kotlin.math.abs import kotlin.test.assertTrue diff --git a/src/test/kotlin/pythagoras/f/AreaTest.kt b/src/test/kotlin/euklid/f/AreaTest.kt similarity index 96% rename from src/test/kotlin/pythagoras/f/AreaTest.kt rename to src/test/kotlin/euklid/f/AreaTest.kt index 7467e01..12c81f6 100644 --- a/src/test/kotlin/pythagoras/f/AreaTest.kt +++ b/src/test/kotlin/euklid/f/AreaTest.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,10 +14,10 @@ * limitations under the License. */ -package pythagoras.f +package euklid.f import org.junit.Test -import pythagoras.assertEqualsWithDelta +import euklid.assertEqualsWithDelta import kotlin.test.assertEquals import kotlin.test.fail diff --git a/src/test/kotlin/pythagoras/f/MathUtilTest.kt b/src/test/kotlin/euklid/f/MathUtilTest.kt similarity index 96% rename from src/test/kotlin/pythagoras/f/MathUtilTest.kt rename to src/test/kotlin/euklid/f/MathUtilTest.kt index 506b055..fb8bbc9 100644 --- a/src/test/kotlin/pythagoras/f/MathUtilTest.kt +++ b/src/test/kotlin/euklid/f/MathUtilTest.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package pythagoras.f +package euklid.f import org.junit.Test -import pythagoras.assertEqualsWithDelta +import euklid.assertEqualsWithDelta import kotlin.test.assertEquals /** diff --git a/src/test/kotlin/pythagoras/f/RectangleTest.kt b/src/test/kotlin/euklid/f/RectangleTest.kt similarity index 91% rename from src/test/kotlin/pythagoras/f/RectangleTest.kt rename to src/test/kotlin/euklid/f/RectangleTest.kt index 1c22da7..66198c8 100644 --- a/src/test/kotlin/pythagoras/f/RectangleTest.kt +++ b/src/test/kotlin/euklid/f/RectangleTest.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package pythagoras.f +package euklid.f import org.junit.Test -import pythagoras.assertEqualsWithDelta +import euklid.assertEqualsWithDelta class RectangleTest { @Test diff --git a/src/test/kotlin/pythagoras/f/VectorTest.kt b/src/test/kotlin/euklid/f/VectorTest.kt similarity index 96% rename from src/test/kotlin/pythagoras/f/VectorTest.kt rename to src/test/kotlin/euklid/f/VectorTest.kt index 7a4fedd..9eb7b72 100644 --- a/src/test/kotlin/pythagoras/f/VectorTest.kt +++ b/src/test/kotlin/euklid/f/VectorTest.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package pythagoras.f +package euklid.f import org.junit.Test -import pythagoras.assertEqualsWithDelta +import euklid.assertEqualsWithDelta /** * Tests aspects of the [Vector] class. diff --git a/src/test/kotlin/pythagoras/i/MathUtilTest.kt b/src/test/kotlin/euklid/i/MathUtilTest.kt similarity index 93% rename from src/test/kotlin/pythagoras/i/MathUtilTest.kt rename to src/test/kotlin/euklid/i/MathUtilTest.kt index 5f9e6a1..9449f2d 100644 --- a/src/test/kotlin/pythagoras/i/MathUtilTest.kt +++ b/src/test/kotlin/euklid/i/MathUtilTest.kt @@ -1,5 +1,5 @@ /* - * Copyright 2017 The Pythagoras-kt Authors + * Copyright 2017 The Euklid Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package pythagoras.i +package euklid.i import org.junit.Test import kotlin.test.assertEquals