/** * Retrieves the rotation point of this OrientedShape3D node, * and copies it into the specified vector. * @param axis the point that will contain the rotation point */ void getRotationPoint(Point3f point) { point.set(rotationPoint); }
/** * Sets the position at the specified index for this * interpolator. * @param index the index to be changed * @param position the new position value */ public void setPosition(int index, Point3f position) { this.positions[index].set(position); }
private final void reset() { this.tmp.set(0, 0, 0); this.n = 0; }
/** * Retrieves the position value at the specified index. * @param index the index of the value requested * @param position returns the interpolator's position value at the index */ public void getPosition(int index, Point3f position) { position.set(this.positions[index]); }
/** * Initializes the point light's attenuation constants. * @param attenuation a vector consisting of constant, linear, and quadratic coefficients */ void initAttenuation(Point3f attenuation) { this.attenuation.set(attenuation); }
void initRotationPoint(float x, float y, float z) { rotationPoint.set(x,y,z); }
void getXformPosition(Point3f position) { position.set(this.xformPosition); }
/** * Sets the rotation point. * @param point the point about which the billboard rotates */ public void setRotationPoint(Point3f point) { this.rotationPoint.set(point); }
/** * Sets the rotation point. * @param x the x component of the point about which the billboard rotates * @param y the y component of the point about which the billboard rotates * @param z the z component of the point about which the billboard rotates */ public void setRotationPoint(float x, float y, float z) { this.rotationPoint.set(x, y, z); }
/** * Gets the rotation point and sets the parameter to this value. * @param point the position the Billboard rotates about */ public void getRotationPoint(Point3f point) { point.set(this.rotationPoint); } /**
final void initLodOffset(float s, float t, float r) { if (lodOffset == null) { lodOffset = new Point3f(s, t, r); } else { lodOffset.set(s, t, r); } }
private void setPathArrays(Point3f[] positions) { this.positions = new Point3f[positions.length]; for(int i = 0; i < positions.length; i++) { this.positions[i] = new Point3f(); this.positions[i].set(positions[i]); } }
/** * Initializes this light's position from the vector provided. * @param position the new position */ void initPosition(Point3f position) { this.position.set(position); if (staticTransform != null) { staticTransform.transform.transform(this.position, this.position); } }
static private final void apply(final CustomTriangleMesh m, final List<Point3f> triangles) { final List<Point3f> current = m.getMesh(); // the triangles, specified as // triplets of vertices for (int i = 0; i < current.size(); ++i) { current.get(i).set(triangles.get(i)); } m.update(); }
public void setCoordinates(final int[] indices, final Point3f p) { changed = true; final GeometryArray ga = (GeometryArray) getGeometry(); for (int i = 0; i < indices.length; i++) { ga.setCoordinate(indices[i], p); mesh.get(indices[i]).set(p); } }
@Override public void setCoordinates(final int[] indices, final Point3f p) { changed = true; final GeometryArray ga = (GeometryArray) getGeometry(); for (int i = 0; i < indices.length; i++) { ga.setCoordinate(indices[i], p); vertices[indices[i]].set(p); } }
@Override public void setCoordinate(final int i, final Point3f p) { changed = true; vertices[i].set(p); ((GeometryArray) getGeometry()).setCoordinate(i, p); }
public void setCenter(final Point3f center) { this.center.set(center); final Vector3f translateV = new Vector3f(center); translate.set(translateV); translateTG.setTransform(translate); }