public Axis(RotationAxis rot) { theta = (float) rot.getAngle(); x = (float) rot.getRotationAxis().getX(); y = (float) rot.getRotationAxis().getY(); z = (float) rot.getRotationAxis().getZ(); screw = (float) (Calc.amount(rot.getScrewTranslation()) / Calc.amount(rot.getRotationAxis())); orthogonal = (float) (Calc.amount(rot.getOtherTranslation()) / Calc.amount(rot.getRotationAxis())); }