@Test public void ofRotation() { assertEquals(0, Angle.ofRotation(5).asRad(), ACCURACY); assertEquals(-Math.PI, Angle.ofRotation(0.5).asRad(), ACCURACY); assertEquals(-Math.PI / 2, Angle.ofRotation(-0.25).asRad(), ACCURACY); }
public static Angle ofRotation(double turns) { return new Angle(rot2rad(turns)); }
Angle extends AAngularMeasure implements IAngle { public static Angle ofRotation(double turns) { return new Angle(rot2rad(turns)); } }
Angle extends AAngularMeasure implements IAngle { public static Angle ofRotation(double turns) { return new Angle(rot2rad(turns)); } private  Angle(); private  Angle(double rad); }
Angle extends AAngularMeasure implements IAngle { public static Angle ofRotation(double turns) { return new Angle(rot2rad(turns)); } private  Angle(); private  Angle(double rad); static Angle zero(); static Angle ofRad(double rad); static Angle ofDeg(double deg); static Angle ofRotation(double turns); static Angle ofVec(IVector2 vector); static Angle ofAngularMeasure(IAngularMeasure angularMeasure); @Override IAngle add(final IAngularMeasure angle); @Override IAngle add(final double angle); @Override IAngle subtract(final IAngularMeasure angle); @Override IAngle subtract(final double angle); @Override IAngle multiply(final double factor); }
Angle extends AAngularMeasure implements IAngle { public static Angle ofRotation(double turns) { return new Angle(rot2rad(turns)); } private  Angle(); private  Angle(double rad); static Angle zero(); static Angle ofRad(double rad); static Angle ofDeg(double deg); static Angle ofRotation(double turns); static Angle ofVec(IVector2 vector); static Angle ofAngularMeasure(IAngularMeasure angularMeasure); @Override IAngle add(final IAngularMeasure angle); @Override IAngle add(final double angle); @Override IAngle subtract(final IAngularMeasure angle); @Override IAngle subtract(final double angle); @Override IAngle multiply(final double factor);  }