summaryrefslogtreecommitdiffstats
path: root/src/javax/vecmath/Vector3f.java
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2011-12-31 14:50:54 -0800
committerHarvey Harrison <[email protected]>2011-12-31 14:50:54 -0800
commit5800faa58d9dfe0244d40049cca7aa2a8ee4c395 (patch)
tree1d530dacfc9ffd4e96357ad209aba84e1a93362b /src/javax/vecmath/Vector3f.java
parenta51c424d5f6abc1a2450dc37e44bd7604f95d709 (diff)
vecmath: remove trailing whitespace from all files
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/javax/vecmath/Vector3f.java')
-rw-r--r--src/javax/vecmath/Vector3f.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/javax/vecmath/Vector3f.java b/src/javax/vecmath/Vector3f.java
index 15ebf8d..71b801e 100644
--- a/src/javax/vecmath/Vector3f.java
+++ b/src/javax/vecmath/Vector3f.java
@@ -34,7 +34,7 @@ package javax.vecmath;
import java.lang.Math;
/**
- * A 3-element vector that is represented by single-precision floating point
+ * A 3-element vector that is represented by single-precision floating point
* x,y,z coordinates. If this value represents a normal, then it should
* be normalized.
*
@@ -89,7 +89,7 @@ public class Vector3f extends Tuple3f implements java.io.Serializable {
/**
* Constructs and initializes a Vector3f from the specified Tuple3f.
* @param t1 the Tuple3f containing the initialization x y z data
- */
+ */
public Vector3f(Tuple3f t1) {
super(t1);
}
@@ -98,7 +98,7 @@ public class Vector3f extends Tuple3f implements java.io.Serializable {
/**
* Constructs and initializes a Vector3f from the specified Tuple3d.
* @param t1 the Tuple3d containing the initialization x y z data
- */
+ */
public Vector3f(Tuple3d t1) {
super(t1);
}
@@ -188,18 +188,18 @@ public class Vector3f extends Tuple3f implements java.io.Serializable {
}
- /**
+ /**
* Returns the angle in radians between this vector and the vector
- * parameter; the return value is constrained to the range [0,PI].
- * @param v1 the other vector
- * @return the angle in radians in the range [0,PI]
- */
- public final float angle(Vector3f v1)
- {
+ * parameter; the return value is constrained to the range [0,PI].
+ * @param v1 the other vector
+ * @return the angle in radians in the range [0,PI]
+ */
+ public final float angle(Vector3f v1)
+ {
double vDot = this.dot(v1) / ( this.length()*v1.length() );
if( vDot < -1.0) vDot = -1.0;
if( vDot > 1.0) vDot = 1.0;
return((float) (Math.acos( vDot )));
- }
+ }
}