added the geometry package from Mantissa

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@512380 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2007-02-27 20:22:32 +00:00
parent e2ffb90572
commit c3feb16615
7 changed files with 20 additions and 12 deletions

View File

@ -15,9 +15,9 @@
// specific language governing permissions and limitations
// under the License.
package org.spaceroots.mantissa.geometry;
package org.apache.commons.math.geometry;
import org.spaceroots.mantissa.MantissaException;
import org.apache.commons.math.MathException;
/** This class represents exceptions thrown while extractiong Cardan
* or Euler angles from a rotation.
@ -28,7 +28,7 @@ import org.spaceroots.mantissa.MantissaException;
*/
public class CardanEulerSingularityException
extends MantissaException {
extends MathException {
/** Simple constructor.
* build an exception with a default message.
@ -36,7 +36,7 @@ public class CardanEulerSingularityException
* if false it is related to EulerAngles
*/
public CardanEulerSingularityException(boolean isCardan) {
super(isCardan ? "Cardan angles singularity" : "Euler angles singularity");
super(isCardan ? "Cardan angles singularity" : "Euler angles singularity", new Object[0]);
}
private static final long serialVersionUID = -1360952845582206770L;

View File

@ -15,9 +15,9 @@
// specific language governing permissions and limitations
// under the License.
package org.spaceroots.mantissa.geometry;
package org.apache.commons.math.geometry;
import org.spaceroots.mantissa.MantissaException;
import org.apache.commons.math.MathException;
/** This class represents exceptions thrown while building rotations
* from matrices.
@ -28,7 +28,7 @@ import org.spaceroots.mantissa.MantissaException;
*/
public class NotARotationMatrixException
extends MantissaException {
extends MathException {
/** Simple constructor.
* Build an exception by translating and formating a message

View File

@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
package org.spaceroots.mantissa.geometry;
package org.apache.commons.math.geometry;
import java.io.Serializable;

View File

@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
package org.spaceroots.mantissa.geometry;
package org.apache.commons.math.geometry;
/**
* This class is a utility representing a rotation order specification

View File

@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
package org.spaceroots.mantissa.geometry;
package org.apache.commons.math.geometry;
import java.io.Serializable;

View File

@ -15,7 +15,13 @@
// specific language governing permissions and limitations
// under the License.
package org.spaceroots.mantissa.geometry;
package org.apache.commons.math.geometry;
import org.apache.commons.math.geometry.CardanEulerSingularityException;
import org.apache.commons.math.geometry.NotARotationMatrixException;
import org.apache.commons.math.geometry.Rotation;
import org.apache.commons.math.geometry.RotationOrder;
import org.apache.commons.math.geometry.Vector3D;
import junit.framework.*;

View File

@ -15,7 +15,9 @@
// specific language governing permissions and limitations
// under the License.
package org.spaceroots.mantissa.geometry;
package org.apache.commons.math.geometry;
import org.apache.commons.math.geometry.Vector3D;
import junit.framework.*;