Interface ICircleByCenterPointConstraint


public interface ICircleByCenterPointConstraint
A constraint on CircleByCenterPoint editing.

This can for example be configured on a CircleByCenterPointHandlesProvider.

Since:
2025.0
  • Method Details

    • apply

      @NotNull CircleByCenterPoint apply(@NotNull CircleByCenterPoint oldCircle, @NotNull CircleByCenterPoint newCircle, @NotNull CircleByCenterPointChange change)
      Applies this constraint on a pending change.
      Parameters:
      oldCircle - The base circle on which the change is performed, cannot be null.
      newCircle - The result of the change, without any constraints applied, cannot be null.
      change - The change that was applied.
      Returns:
      The resulting circle, after applying this constraint on the pending change. If the constraint does not apply, simply return the newCircle. Cannot be null.
    • apply

      @NotNull CircleByCenterPoint apply(@NotNull CircleByCenterPoint circle)
      Applies this constraint on a circle without a (known) change.
      Parameters:
      circle - The circle to constrain, cannot be null.
      Returns:
      The resulting circle, after applying this constraint. If the constraint does not apply, simply return the circle. Cannot be null.