/** * @param longitude * @param units */ public void setLongitude( double longitude, IUnit units ) { this.longitude = units.convert( longitude, Unit.RADIAN ); }
@Override public double convert( double value, IUnit targetUnit ) { return getReferencedObject().convert( value, targetUnit ); }
/** * @param targetUnit * The unit in which to express longitude. * @return the longitude value relative to the Greenwich Meridian, expressed in the specified units. This * convenience method make easier to obtains longitude in degrees (<code>getLongitude(Unit.DEGREE)</code>), * no matter the underlying angular unit of this prime meridian. */ public double getLongitude( final IUnit targetUnit ) { return getAngularUnit().convert( getLongitude(), targetUnit ); }
/** * @return the longitude value relative to the Greenwich Meridian, expressed in the radians. */ public double getLongitudeAsRadian() { return getAngularUnit().convert( getLongitude(), Unit.RADIAN ); }
value = secondUnit.convert( value, unit );