aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-01-27 23:40:44 -0800
committerHarvey Harrison <[email protected]>2013-01-27 23:40:44 -0800
commit0b45e885c71a1e84360d44834fe251482ec6655d (patch)
treefcddb1b4ab53bda043f8a826a53ab5d8490988a9 /src
parent991207c7366c300c9adaf84e8831f09e080098a0 (diff)
j3dcore: remove some unneeded casts to Tuple3d
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/classes/share/javax/media/j3d/GeometryArrayRetained.java33
-rw-r--r--src/classes/share/javax/media/j3d/SwitchRetained.java2
2 files changed, 17 insertions, 18 deletions
diff --git a/src/classes/share/javax/media/j3d/GeometryArrayRetained.java b/src/classes/share/javax/media/j3d/GeometryArrayRetained.java
index 5b3571c..94cff1c 100644
--- a/src/classes/share/javax/media/j3d/GeometryArrayRetained.java
+++ b/src/classes/share/javax/media/j3d/GeometryArrayRetained.java
@@ -44,7 +44,6 @@ import javax.vecmath.Point4f;
import javax.vecmath.TexCoord2f;
import javax.vecmath.TexCoord3f;
import javax.vecmath.TexCoord4f;
-import javax.vecmath.Tuple3d;
import javax.vecmath.Vector3d;
import javax.vecmath.Vector3f;
@@ -6849,7 +6848,7 @@ ArrayList<ArrayList<MorphRetained>> morphUserLists = null;
double pD, pNrmDotrDir, tr;
// Compute plane D.
- tempV3d.set((Tuple3d) pnt);
+ tempV3d.set(pnt);
pD = normal.dot(tempV3d);
direction.x = end.x - start.x;
@@ -6864,7 +6863,7 @@ ArrayList<ArrayList<MorphRetained>> morphUserLists = null;
return false;
}
- tempV3d.set((Tuple3d) start);
+ tempV3d.set(start);
tr = (pD - normal.dot(tempV3d))/ pNrmDotrDir;
@@ -7236,11 +7235,11 @@ ArrayList<ArrayList<MorphRetained>> morphUserLists = null;
return false; // Degenerate triangle.
}
- tempV3d.set((Tuple3d) v0);
+ tempV3d.set(v0);
d1 = - n1.dot(tempV3d); // plane equation 1: n1.x + d1 = 0
// put u to compute signed distance to the plane.
- tempV3d.set((Tuple3d) u);
+ tempV3d.set(u);
du = n1.dot(tempV3d) + d1;
// coplanarity robustness check
@@ -7342,16 +7341,16 @@ ArrayList<ArrayList<MorphRetained>> morphUserLists = null;
return false; // Degenerate triangle.
}
- tempV3d.set((Tuple3d) v0);
+ tempV3d.set(v0);
d1 = - n1.dot(tempV3d); // plane equation 1: n1.x + d1 = 0
// put u0, u1, and u2 into plane equation 1
// to compute signed distance to the plane.
- tempV3d.set((Tuple3d) u0);
+ tempV3d.set(u0);
du0 = n1.dot(tempV3d) + d1;
- tempV3d.set((Tuple3d) u1);
+ tempV3d.set(u1);
du1 = n1.dot(tempV3d) + d1;
- tempV3d.set((Tuple3d) u2);
+ tempV3d.set(u2);
du2 = n1.dot(tempV3d) + d1;
// coplanarity robustness check
@@ -7385,16 +7384,16 @@ ArrayList<ArrayList<MorphRetained>> morphUserLists = null;
return false; // Degenerate triangle.
}
- tempV3d.set((Tuple3d) u0);
+ tempV3d.set(u0);
d2 = - n2.dot(tempV3d); // plane equation 2: n2.x + d2 = 0
// put v0, v1, and v2 into plane equation 2
// to compute signed distance to the plane.
- tempV3d.set((Tuple3d) v0);
+ tempV3d.set(v0);
dv0 = n2.dot(tempV3d) + d2;
- tempV3d.set((Tuple3d) v1);
+ tempV3d.set(v1);
dv1 = n2.dot(tempV3d) + d2;
- tempV3d.set((Tuple3d) v2);
+ tempV3d.set(v2);
dv2 = n2.dot(tempV3d) + d2;
// coplanarity robustness check
@@ -7768,9 +7767,9 @@ ArrayList<ArrayList<MorphRetained>> morphUserLists = null;
// Plane equation: (p - p0)*pNrm = 0 or p*pNrm = pD;
tempV3d = new Vector3d();
- tempV3d.set((Tuple3d) coordinates[0]);
+ tempV3d.set(coordinates[0]);
pD = pNrm.dot(tempV3d);
- tempV3d.set((Tuple3d) origin);
+ tempV3d.set(origin);
// Substitute Ray equation:
// p = origin + pi.distance*direction
@@ -8009,9 +8008,9 @@ ArrayList<ArrayList<MorphRetained>> morphUserLists = null;
return false; // Degenerate polygon.
}
// Compute plane D.
- tempV3d.set((Tuple3d) coordinates[0]);
+ tempV3d.set(coordinates[0]);
pD = pNrm.dot(tempV3d);
- tempV3d.set((Tuple3d) point.location);
+ tempV3d.set(point.location);
return ((pD - pNrm.dot(tempV3d)) <= 0);
}
diff --git a/src/classes/share/javax/media/j3d/SwitchRetained.java b/src/classes/share/javax/media/j3d/SwitchRetained.java
index b2832c0..66db1ab 100644
--- a/src/classes/share/javax/media/j3d/SwitchRetained.java
+++ b/src/classes/share/javax/media/j3d/SwitchRetained.java
@@ -446,7 +446,7 @@ void updateSwitchChild(int child, boolean switchOn, ArrayList<SwitchState> updat
localToVworldKeys.length);
if(hkIndex >= 0) {
for (j=0; j<numChildren; j++) {
- switchStates = (ArrayList)childrenSwitchStates.get(j);
+ switchStates = childrenSwitchStates.get(j);
switchStates.remove(hkIndex);
}
switchLevels.remove(hkIndex);