@Test public void testFromRadians() throws Exception { assertEquals(180, Angle.fromRadians((float) Math.PI).get().intValue()); }
public static Angle fromRadians(float aAngleInRadians) { return new Angle((int) Math.toDegrees(aAngleInRadians)); }
Angle implements Reflectable, Distributable { public static Angle fromRadians(float aAngleInRadians) { return new Angle((int) Math.toDegrees(aAngleInRadians)); } }
Angle implements Reflectable, Distributable { public static Angle fromRadians(float aAngleInRadians) { return new Angle((int) Math.toDegrees(aAngleInRadians)); } Angle(int aAngleInDegrees); }
Angle implements Reflectable, Distributable { public static Angle fromRadians(float aAngleInRadians) { return new Angle((int) Math.toDegrees(aAngleInRadians)); } Angle(int aAngleInDegrees); Integer get(); @ReflectiveMethod Angle add(int aDiff); @ReflectiveMethod Angle invert(); @ReflectiveMethod Angle snapTo(int aStep); @ReflectiveMethod Angle resetToZero(); float toRadians(); @Override boolean equals(Object o); @Override int hashCode(); @Override AngleClassInformation getClassInformation(); @Override Map<String, Object> serialize(); static Angle deserialize(Map<String, Object> aSerializedData); static Angle fromRadians(float aAngleInRadians); }
Angle implements Reflectable, Distributable { public static Angle fromRadians(float aAngleInRadians) { return new Angle((int) Math.toDegrees(aAngleInRadians)); } Angle(int aAngleInDegrees); Integer get(); @ReflectiveMethod Angle add(int aDiff); @ReflectiveMethod Angle invert(); @ReflectiveMethod Angle snapTo(int aStep); @ReflectiveMethod Angle resetToZero(); float toRadians(); @Override boolean equals(Object o); @Override int hashCode(); @Override AngleClassInformation getClassInformation(); @Override Map<String, Object> serialize(); static Angle deserialize(Map<String, Object> aSerializedData); static Angle fromRadians(float aAngleInRadians); final int angleInDegrees; static final Angle ZERO; }