Compare commits
10 Commits
c65805fea0
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| d556d31ff7 | |||
| b8fea743ee | |||
| 3e2002ead7 | |||
| 0a0a4ecdd0 | |||
| 16bed1e75a | |||
| a0a2a32ea1 | |||
| e3d3618ebf | |||
| c7ae29ec0c | |||
| 39ff9717dc | |||
| 18e16dc048 |
+11
-1
@@ -1,4 +1,14 @@
|
|||||||
language: java
|
language: java
|
||||||
|
sudo: false
|
||||||
|
|
||||||
jdk:
|
jdk:
|
||||||
- openjdk6
|
|
||||||
- openjdk7
|
- openjdk7
|
||||||
|
- oraclejdk8
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- '$HOME/.m2/repository'
|
||||||
|
|
||||||
|
branches:
|
||||||
|
except:
|
||||||
|
- gh-pages
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ the [Clyde] library.
|
|||||||
|
|
||||||
* [API documentation] is available.
|
* [API documentation] is available.
|
||||||
|
|
||||||
* Pythagoras can be obtained via Maven Central: `com.samskivert:pythagoras:1.4.1`.
|
* Pythagoras can be obtained via Maven Central: `com.samskivert:pythagoras:1.4.3`.
|
||||||
Or you can download the pre-built [jar file].
|
Or you can download the pre-built [jar file].
|
||||||
|
|
||||||
## Design
|
## Design
|
||||||
@@ -57,6 +57,6 @@ in the `LICENSE` file and at http://www.apache.org/licenses/LICENSE-2.0 on the
|
|||||||
web.
|
web.
|
||||||
|
|
||||||
[API documentation]: http://samskivert.github.com/pythagoras/apidocs/overview-summary.html
|
[API documentation]: http://samskivert.github.com/pythagoras/apidocs/overview-summary.html
|
||||||
[jar file]: http://repo2.maven.org/maven2/com/samskivert/pythagoras/1.4.1/pythagoras-1.4.1.jar
|
[jar file]: http://repo2.maven.org/maven2/com/samskivert/pythagoras/1.4.3/pythagoras-1.4.3.jar
|
||||||
[Apache Harmony]: http://harmony.apache.org/
|
[Apache Harmony]: http://harmony.apache.org/
|
||||||
[Clyde]: https://github.com/threerings/clyde
|
[Clyde]: https://github.com/threerings/clyde
|
||||||
|
|||||||
@@ -20,10 +20,6 @@
|
|||||||
<url>http://github.com/samskivert/pythagoras/issues</url>
|
<url>http://github.com/samskivert/pythagoras/issues</url>
|
||||||
</issueManagement>
|
</issueManagement>
|
||||||
|
|
||||||
<prerequisites>
|
|
||||||
<maven>3.3.0</maven>
|
|
||||||
</prerequisites>
|
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
<name>Apache License, Version 2.0</name>
|
<name>Apache License, Version 2.0</name>
|
||||||
@@ -46,8 +42,12 @@
|
|||||||
<url>http://github.com/samskivert/pythagoras/</url>
|
<url>http://github.com/samskivert/pythagoras/</url>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
|
<prerequisites>
|
||||||
|
<maven>3.3.0</maven>
|
||||||
|
</prerequisites>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<source.level>1.7</source.level>
|
<source.level>8</source.level>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@@ -104,6 +104,7 @@
|
|||||||
<encoding>UTF-8</encoding>
|
<encoding>UTF-8</encoding>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
@@ -114,6 +115,19 @@
|
|||||||
<additionalparam>-Xdoclint:all -Xdoclint:-missing</additionalparam>
|
<additionalparam>-Xdoclint:all -Xdoclint:-missing</additionalparam>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.sonatype.plugins</groupId>
|
||||||
|
<artifactId>nexus-staging-maven-plugin</artifactId>
|
||||||
|
<version>1.6.6</version>
|
||||||
|
<extensions>true</extensions>
|
||||||
|
<inherited>false</inherited>
|
||||||
|
<configuration>
|
||||||
|
<serverId>ossrh-releases</serverId>
|
||||||
|
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
|
||||||
|
<stagingProfileId>aaa740f9c5c260</stagingProfileId>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ public abstract class AbstractLine implements ILine
|
|||||||
|
|
||||||
@Override // from interface IShape
|
@Override // from interface IShape
|
||||||
public boolean isEmpty () {
|
public boolean isEmpty () {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // from interface IShape
|
@Override // from interface IShape
|
||||||
|
|||||||
@@ -380,8 +380,11 @@ public class AffineTransform extends AbstractTransform
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString () {
|
public String toString () {
|
||||||
return "affine [" + MathUtil.toString(m00) + " " + MathUtil.toString(m01) + " " +
|
if (m00 != 1 || m01 != 0 || m10 != 0 || m11 != 1) return "affine [" +
|
||||||
|
MathUtil.toString(m00) + " " + MathUtil.toString(m01) + " " +
|
||||||
MathUtil.toString(m10) + " " + MathUtil.toString(m11) + " " + translation() + "]";
|
MathUtil.toString(m10) + " " + MathUtil.toString(m11) + " " + translation() + "]";
|
||||||
|
else if (tx != 0 || ty != 0) return "trans " + translation();
|
||||||
|
else return "ident";
|
||||||
}
|
}
|
||||||
|
|
||||||
// we don't publicize this because it might encourage someone to do something stupid like
|
// we don't publicize this because it might encourage someone to do something stupid like
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ public abstract class AbstractLine implements ILine
|
|||||||
|
|
||||||
@Override // from interface IShape
|
@Override // from interface IShape
|
||||||
public boolean isEmpty () {
|
public boolean isEmpty () {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // from interface IShape
|
@Override // from interface IShape
|
||||||
|
|||||||
@@ -380,8 +380,11 @@ public class AffineTransform extends AbstractTransform
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString () {
|
public String toString () {
|
||||||
return "affine [" + MathUtil.toString(m00) + " " + MathUtil.toString(m01) + " " +
|
if (m00 != 1 || m01 != 0 || m10 != 0 || m11 != 1) return "affine [" +
|
||||||
|
MathUtil.toString(m00) + " " + MathUtil.toString(m01) + " " +
|
||||||
MathUtil.toString(m10) + " " + MathUtil.toString(m11) + " " + translation() + "]";
|
MathUtil.toString(m10) + " " + MathUtil.toString(m11) + " " + translation() + "]";
|
||||||
|
else if (tx != 0 || ty != 0) return "trans " + translation();
|
||||||
|
else return "ident";
|
||||||
}
|
}
|
||||||
|
|
||||||
// we don't publicize this because it might encourage someone to do something stupid like
|
// we don't publicize this because it might encourage someone to do something stupid like
|
||||||
|
|||||||
Reference in New Issue
Block a user