Search in sources :

Example 1 with Angle3f

use of org.jwildfire.create.eden.base.Angle3f 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;
}
Also used : Point3f(org.jwildfire.create.eden.base.Point3f) Size3f(org.jwildfire.create.eden.base.Size3f) Angle3f(org.jwildfire.create.eden.base.Angle3f)

Aggregations

Angle3f (org.jwildfire.create.eden.base.Angle3f)1 Point3f (org.jwildfire.create.eden.base.Point3f)1 Size3f (org.jwildfire.create.eden.base.Size3f)1