public final class ObservableCircleByCenterPointUtil extends Object
Observable
instance for CircleByCenterPoint
.Modifier and Type | Method and Description |
---|---|
static Observable<Point> |
deriveCenter(Observable<CircleByCenterPoint> observableCircle)
Derives an
Observable Point from the given observable circle that represents the center point. |
static Observable<Point> |
derivePointAtAngle(Observable<CircleByCenterPoint> observableCircle,
Angle angle)
Derives an
Observable Point from the given observable circle that represents the point at the given angle. |
@NotNull public static Observable<Point> deriveCenter(@NotNull Observable<CircleByCenterPoint> observableCircle)
Observable
Point
from the given observable circle that represents the center point.
This observable point will be updated when the given observable circle changes.
Notes:
null
value, the observable center point instance will contain a null
value too.
Observable#setValue
will throw an exception for derived instances.
observableCircle
- an observable circle from which to derive the centerObservable
@NotNull public static Observable<Point> derivePointAtAngle(@NotNull Observable<CircleByCenterPoint> observableCircle, @NotNull Angle angle)
Observable
Point
from the given observable circle that represents the point at the given angle.
This observable point will be updated when the given observable circle changes.
Notes:
null
value, the observable point instance will contain a null
value too.
Observable#setValue
will throw an exception for derived instances.
observableCircle
- an observable circle from which to derive the pointangle
- the angle at which to derive the point. For example: an angle of 0 will result in the point on the right of the major axis. An angle of 90 will result in the point a the top of the minor axis.Observable