use of org.jwildfire.create.eden.base.Point3f in project JWildfire by thargor6.
the class PositionableSceneElement method clone.
public PositionableSceneElement clone() throws CloneNotSupportedException {
PositionableSceneElement copy;
copy = (PositionableSceneElement) super.clone();
copy.position = new Point3f(position.getX(), position.getY(), position.getZ());
copy.orientation = new Angle3f(orientation.getAlpha(), orientation.getBeta(), orientation.getGamma());
copy.size = new Size3f(size.getX(), size.getY(), size.getZ());
return copy;
}
use of org.jwildfire.create.eden.base.Point3f in project JWildfire by thargor6.
the class SceneElementGroup method addCylinder.
public Cylinder addCylinder(double pOriginX, double pOriginY, double pOriginZ, double pRadius, double pHeight) {
Cylinder cylinder = new Cylinder(this);
cylinder.setRadius((float) pRadius);
cylinder.setHeight((float) pHeight);
cylinder.setPosition(new Point3f(pOriginX, pOriginY, pOriginZ));
elements.add(cylinder);
return cylinder;
}
use of org.jwildfire.create.eden.base.Point3f in project JWildfire by thargor6.
the class SceneElementGroup method addBox.
public Box addBox(double pOriginX, double pOriginY, double pOriginZ, double pSize) {
Box box = new Box(this);
box.setSize(pSize, pSize, pSize);
box.setPosition(new Point3f(pOriginX, pOriginY, pOriginZ));
elements.add(box);
return box;
}
use of org.jwildfire.create.eden.base.Point3f in project JWildfire by thargor6.
the class SceneElementGroup method addSphere.
public Sphere addSphere(double pOriginX, double pOriginY, double pOriginZ, double pRadius) {
Sphere sphere = new Sphere(this);
sphere.setRadius((float) pRadius);
sphere.setPosition(new Point3f(pOriginX, pOriginY, pOriginZ));
elements.add(sphere);
return sphere;
}
use of org.jwildfire.create.eden.base.Point3f in project JWildfire by thargor6.
the class SceneElementGroup method addPointLight.
public PointLight addPointLight(double pOriginX, double pOriginY, double pOriginZ, double pIntensity) {
PointLight light = new PointLight(this);
light.setPosition(new Point3f(pOriginX, pOriginY, pOriginZ));
light.setIntensity(pIntensity);
elements.add(light);
return light;
}
Aggregations