commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r515276 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java
Date Tue, 06 Mar 2007 20:03:38 GMT
Author: luc
Date: Tue Mar  6 12:03:37 2007
New Revision: 515276

URL: http://svn.apache.org/viewvc?view=rev&rev=515276
Log:
added constant for null vector

Modified:
    jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java

Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java?view=diff&rev=515276&r1=515275&r2=515276
==============================================================================
--- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java
(original)
+++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java
Tue Mar  6 12:03:37 2007
@@ -28,23 +28,26 @@
 public class Vector3D
   implements Serializable {
 
-  /** First canonical vector (coordinates : 1, 0, 0). */
+  /** First canonical vector (coordinates: 1, 0, 0). */
   public static final Vector3D plusI = new Vector3D(1, 0, 0);
 
-  /** Opposite of the first canonical vector (coordinates : -1, 0, 0). */
+  /** Opposite of the first canonical vector (coordinates: -1, 0, 0). */
   public static final Vector3D minusI = new Vector3D(-1, 0, 0);
 
-  /** Second canonical vector (coordinates : 0, 1, 0). */
+  /** Second canonical vector (coordinates: 0, 1, 0). */
   public static final Vector3D plusJ = new Vector3D(0, 1, 0);
 
-  /** Opposite of the second canonical vector (coordinates : 0, -1, 0). */
+  /** Opposite of the second canonical vector (coordinates: 0, -1, 0). */
   public static final Vector3D minusJ = new Vector3D(0, -1, 0);
 
-  /** Third canonical vector (coordinates : 0, 0, 1). */
+  /** Third canonical vector (coordinates: 0, 0, 1). */
   public static final Vector3D plusK = new Vector3D(0, 0, 1);
 
-  /** Opposite of the third canonical vector (coordinates : 0, 0, -1).  */
+  /** Opposite of the third canonical vector (coordinates: 0, 0, -1).  */
   public static final Vector3D minusK = new Vector3D(0, 0, -1);
+
+  /** Null vector (coordinates: 0, 0, 0). */
+  public static final Vector3D zero   = new Vector3D(0, 0, 0);
 
   /** Simple constructor.
    * Build a null vector.



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message