struct
PF2d::Rect(T)
- PF2d::Rect(T)
- Struct
- Value
- Object
Included Modules
- Enumerable(PF2d::Vec2(T))
Defined in:
pf2d/rect.crConstructors
Macro Summary
Instance Method Summary
- #area
- #bottom
- #bottom_edge
- #bottom_left
- #bottom_right
- #center
- #covers?(x, y)
- #covers?(point : Vec)
- #covers?(other : Rect)
-
#each(&)
Must yield this collection's elements to the block.
- #height
- #intersection?(other : Rect)
- #left
- #left_edge
- #map_points(dest : Rect(Number), &)
- #merge(other : Rect)
- #right
- #right_edge
-
#size : Vec2(T)
Returns the number of elements in the collection.
- #size=(size : Vec2(T))
-
#to_f
Return a new Rect as Rect(Float64)
-
#to_f32
Return a new Rect as Rect(Float32)
-
#to_f64
Return a new Rect as Rect(Float64)
-
#to_i
Return a new Rect as Rect(Int32)
-
#to_i128
Return a new Rect as Rect(Int128)
-
#to_i16
Return a new Rect as Rect(Int16)
-
#to_i32
Return a new Rect as Rect(Int32)
-
#to_i64
Return a new Rect as Rect(Int64)
-
#to_i8
Return a new Rect as Rect(Int8)
- #to_tris(cast = T)
-
#to_u
Return a new Rect as Rect(UInt32)
-
#to_u128
Return a new Rect as Rect(UInt128)
-
#to_u16
Return a new Rect as Rect(UInt16)
-
#to_u32
Return a new Rect as Rect(UInt32)
-
#to_u64
Return a new Rect as Rect(UInt64)
-
#to_u8
Return a new Rect as Rect(UInt8)
- #top
- #top_edge
- #top_left : Vec2(T)
- #top_left=(top_left : Vec2(T))
- #top_right
- #width
Constructor Detail
Macro Detail
Instance Method Detail
def each(&)
#
Description copied from module Enumerable(PF2d::Vec2(T))
Must yield this collection's elements to the block.
Description copied from module Enumerable(PF2d::Vec2(T))
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4