Sha256: f2709b323e20c39880961e8af50f2da759d6527912dbddcc5ca4ee1e8afe0e4b
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
class Region type raw_region_entity = [Numeric, Numeric, Numeric, Numeric] attr_accessor x: Numeric attr_accessor y: Numeric attr_accessor width: Numeric attr_accessor height: Numeric def initialize: (Numeric x, Numeric y, Numeric width, Numeric height) -> void def self.from_top_left_corner_coordinates: (Numeric x, Numeric y, Numeric width, Numeric height) -> Region? def self.from_edge_coordinates: (Numeric left, Numeric `top`, Numeric right, Numeric bottom) -> Region? def to_edge_coordinates: () -> ::Array[Numeric] def to_top_left_corner_coordinates: () -> ::Array[Numeric] def top: () -> Numeric def bottom: () -> Numeric def left: () -> Numeric def right: () -> Numeric def size: () -> Numeric def to_a: () -> ::Array[Numeric] def find_intersect_with: (Region region) -> Region? def intersect?: (Region region) -> boolish def move_by: (Numeric right_by, Numeric down_by) -> Region def find_relative_intersect: (Region region) -> Region? def cover?: (Numeric x, Numeric y) -> boolish end
Version data entries
4 entries across 4 versions & 1 rubygems