BoundingBox.center

Set the central point of BoundingBox.

  1. Point center [@property getter]
  2. PointArg center [@property setter]
    struct BoundingBox(T, uint Dim, BoundingBoxOptions options = BoundingBoxOptions.none)
    @property
    void
    center
    (
    const PointArg value
    )
    if (
    Dim > 0
    )
  3. T center [@property setter]

Examples

Rectangle rect;
rect.center = 2;
assert(rect.size == Rectangle.init.size);
rect.center = [1, 2];
assert(rect.size == Rectangle.init.size);

Meta