package bubble.cloud;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import static org.cobbzilla.util.reflect.ReflectionUtil.copy;

@NoArgsConstructor @Accessors(chain=true)
public class CloudRegionRelative extends CloudRegion {

    public CloudRegionRelative(CloudRegion region) { copy(this, region); }

    @Getter @Setter private double distance;

    public void setDistance(double latitude, double longitude) {
        distance = getLocation().distance(latitude, longitude);
    }

}
