@Override protected float getZ(Point3D32 data) { return data.getZ32(); }
public Node generatePointCloudGraph(Point3D32[] pointCoordinates3d, ColorRGBA[] colorsRGBA) { Vector3f[] vectorArray = new Vector3f[pointCoordinates3d.length]; for (int i = 0; i < pointCoordinates3d.length; i++) { vectorArray[i] = new Vector3f(pointCoordinates3d[i].getX32(), pointCoordinates3d[i].getY32(), pointCoordinates3d[i].getZ32()); } return generatePointCloudGraph(vectorArray, colorsRGBA); }
@Override public void testSetters() throws Exception { super.testSetters(); Random random = new Random(621541L); Point3D32 tuple1 = createEmptyTuple(); for (int i = 0; i < ITERATIONS; i++) { // Test setX(float x) float x = random.nextFloat(); tuple1.setX(x); assertEquals(tuple1.getX32(), x, getEpsilon()); } for (int i = 0; i < ITERATIONS; i++) { // Test setY(float y) float y = random.nextFloat(); tuple1.setY(y); assertEquals(tuple1.getY32(), y, getEpsilon()); } for (int i = 0; i < ITERATIONS; i++) { // Test setZ(float z) float z = random.nextFloat(); tuple1.setZ(z); assertEquals(tuple1.getZ32(), z, getEpsilon()); } }
float vx = vertex.getX32(); float vy = vertex.getY32(); float vz = vertex.getZ32(); vertex.setX(x0 + rxx * vx + rxy * vy + rxz * vz); vertex.setY(y0 + ryx * vx + ryy * vy + ryz * vz);
if (nearest != null) CollisionResult collRes = new CollisionResult(geom, new com.jme3.math.Vector3f(nearest.getX32(), nearest.getY32(), nearest.getZ32()), (float) origin.distance(nearest), 0); collRes.setContactNormal(new com.jme3.math.Vector3f(0, 0, 1));
if (nearest != null) CollisionResult collRes = new CollisionResult(geom, new com.jme3.math.Vector3f(nearest.getX32(), nearest.getY32(), nearest.getZ32()), (float) origin.distance(nearest), 0); collRes.setContactNormal(new com.jme3.math.Vector3f(0, 0, 1));