struct

Blend2D::Geometry::Box

Inherits Blend2D::Geometry::GeometryType < Struct < Value < Object

A box struct.

Constructors

new(x0 : Float64, y0 : Float64, x1 : Float64, y1 : Float64)

Initialize a new Box given two double floating point pairs, representing points.

Source
new(a : Point, b : Point)

Initialize a new Box given two Points.

Source

Instance methods

a

The first point representing the box's position.

Source
b

The second point representing the box's position/size.

Source