struct Tessell::Rect

Defined in:

tessell/geometry.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Float32, y : Float32, w : Float32, h : Float32) #

[View source]
def self.new(origin : Point = Point.new, size : Size = Size.new) #

[View source]

Instance Method Detail

def contains?(p : Point) : Bool #

[View source]
def max_x : Float32 #

[View source]
def max_y : Float32 #

[View source]
def origin : Point #

[View source]
def size : Size #

[View source]
def union(other : Rect) : Rect #

脏矩形合并:返回覆盖两者的最小矩形。


[View source]