Skip to content

Commit

Permalink
Rename project: Pythagoras-kt -> Euklid
Browse files Browse the repository at this point in the history
  • Loading branch information
cdietze committed Nov 19, 2017
1 parent fcfc025 commit 72212b9
Show file tree
Hide file tree
Showing 99 changed files with 206 additions and 207 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ target
.project
.classpath
/bazel-*
pythagoras-kt-js/node_modules
euklid-js/node_modules
.idea
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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).

Expand All @@ -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.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
rootProject.name = 'pythagoras-kt'
rootProject.name = 'euklid'

include 'pythagoras-kt-jvm', 'pythagoras-kt-js'
include 'euklid-jvm', 'euklid-js'
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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.*

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,7 +16,7 @@



package pythagoras.f
package euklid.f

import kotlin.math.abs

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,7 +16,7 @@



package pythagoras.f
package euklid.f

/**
* Implements some code shared by the various [Transform] implementations.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,9 +16,9 @@



package pythagoras.f
package euklid.f

import pythagoras.util.NoninvertibleTransformException
import euklid.util.NoninvertibleTransformException
import kotlin.math.*

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,7 +16,7 @@



package pythagoras.f
package euklid.f

import kotlin.math.abs
import kotlin.math.max
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,7 +16,7 @@



package pythagoras.f
package euklid.f

/**
* Represents a circle on a plane.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,7 +16,7 @@



package pythagoras.f
package euklid.f

import kotlin.math.*

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,7 +16,7 @@



package pythagoras.f
package euklid.f

/**
* An internal class used to compute crossings.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,7 +16,7 @@



package pythagoras.f
package euklid.f

/**
* Represents a cubic curve.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,7 +16,7 @@



package pythagoras.f
package euklid.f

import kotlin.math.max
import kotlin.math.sqrt
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,7 +16,7 @@



package pythagoras.f
package euklid.f

import kotlin.math.abs
import kotlin.math.pow
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -14,7 +14,7 @@
* limitations under the License.
*/

package pythagoras.f
package euklid.f

/**
* Represents a magnitude in two dimensions.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,7 +16,7 @@



package pythagoras.f
package euklid.f

/**
* Dimension-related utility methods.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,7 +16,7 @@



package pythagoras.f
package euklid.f

/**
* Represents an ellipse that is described by a framing rectangle.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,9 +16,9 @@



package pythagoras.f
package euklid.f

import pythagoras.platform.arrayCopy
import euklid.platform.arrayCopy
import kotlin.math.min

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,7 +16,7 @@



package pythagoras.f
package euklid.f

import kotlin.math.max
import kotlin.math.tan
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,7 +16,7 @@



package pythagoras.f
package euklid.f

import kotlin.math.*

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -16,7 +16,7 @@



package pythagoras.f
package euklid.f

/**
* Provides read-only access to an [Arc].
Expand Down
Loading

0 comments on commit 72212b9

Please sign in to comment.