struct
Tessell::Rect
- Tessell::Rect
- Struct
- Value
- Object
Defined in:
tessell/geometry.crConstructors
- .new(x : Float32, y : Float32, w : Float32, h : Float32)
- .new(origin : Point = Point.new, size : Size = Size.new)
Instance Method Summary
- #contains?(p : Point) : Bool
- #max_x : Float32
- #max_y : Float32
- #origin : Point
- #size : Size
-
#union(other : Rect) : Rect
脏矩形合并:返回覆盖两者的最小矩形。