Class: Fox::FXExtentf
- Inherits:
-
Object
- Object
- Fox::FXExtentf
- Defined in:
- rdoc-sources/FXExtentf.rb
Instance Attribute Summary collapse
-
#lower ⇒ Object
readonly
Lower corner of this extent (an FXVec2f instance).
-
#upper ⇒ Object
readonly
Upper corner of this extent (an FXVec2f instance).
Instance Method Summary collapse
-
#[](i) ⇒ Object
Indexing with 0..1 (returns an FXVec2f instance).
-
#center ⇒ Object
Return center of box (as an FXVec2f).
-
#contains?(ext) ⇒ Boolean
Return
true
if box properly contains another box (where ext is another FXExtentf instance). -
#corner(c) ⇒ Object
Return corner number 0, 1, 2 or 3 (as a FXVec2f instance).
-
#diagonal ⇒ Object
Compute diagonal vector (returns an FXVec2f).
-
#diameter ⇒ Object
Return length of diagonal.
-
#empty? ⇒ Boolean
Return
true
if empty. -
#height ⇒ Object
Return height of box.
-
#include!(ext) ⇒ Object
Include given range into extent (where ext is another FXExtentf instance) and return a reference to self.
-
#initialize(xlo, xhi, ylo, yhi) ⇒ FXExtentf
constructor
Initialize from four numbers.
-
#intersect_with(other) ⇒ Object
Return a new FXExtentf that is the intersection of this extent and other.
-
#longest ⇒ Object
Return length of longest side.
-
#overlap?(other) ⇒ Boolean
Return
true
if this extent’s bounds overlap with other extent’s bounds. -
#radius ⇒ Object
Return radius of box.
-
#shortest ⇒ Object
Return length of shortest side.
-
#unite_with(other) ⇒ Object
Return a new FXExtentf that is the union of this extent and other.
-
#width ⇒ Object
Return width of box.
Constructor Details
#initialize(xlo, xhi, ylo, yhi) ⇒ FXExtentf
Initialize from four numbers
10 |
# File 'rdoc-sources/FXExtentf.rb', line 10 def initialize; end |
Instance Attribute Details
#lower ⇒ Object (readonly)
Lower corner of this extent (an FXVec2f instance).
4 5 6 |
# File 'rdoc-sources/FXExtentf.rb', line 4 def lower @lower end |
#upper ⇒ Object (readonly)
Upper corner of this extent (an FXVec2f instance).
7 8 9 |
# File 'rdoc-sources/FXExtentf.rb', line 7 def upper @upper end |
Instance Method Details
#[](i) ⇒ Object
Indexing with 0..1 (returns an FXVec2f instance).
23 |
# File 'rdoc-sources/FXExtentf.rb', line 23 def [](i); end |
#center ⇒ Object
Return center of box (as an FXVec2f)
47 |
# File 'rdoc-sources/FXExtentf.rb', line 47 def center; end |
#contains?(ext) ⇒ Boolean
Return true
if box properly contains another box (where ext is another FXExtentf instance).
53 |
# File 'rdoc-sources/FXExtentf.rb', line 53 def contains?(x, y); end |
#corner(c) ⇒ Object
Return corner number 0, 1, 2 or 3 (as a FXVec2f instance).
76 |
# File 'rdoc-sources/FXExtentf.rb', line 76 def corner(c); end |
#diagonal ⇒ Object
Compute diagonal vector (returns an FXVec2f)
44 |
# File 'rdoc-sources/FXExtentf.rb', line 44 def diagonal; end |
#diameter ⇒ Object
Return length of diagonal
38 |
# File 'rdoc-sources/FXExtentf.rb', line 38 def diameter; end |
#empty? ⇒ Boolean
Return true
if empty
50 |
# File 'rdoc-sources/FXExtentf.rb', line 50 def empty?; end |
#height ⇒ Object
Return height of box
29 |
# File 'rdoc-sources/FXExtentf.rb', line 29 def height; end |
#include!(ext) ⇒ Object
Include given range into extent (where ext is another FXExtentf instance) and return a reference to self.
63 |
# File 'rdoc-sources/FXExtentf.rb', line 63 def include!(x, y); end |
#intersect_with(other) ⇒ Object
Return a new FXExtentf that is the intersection of this extent and other.
82 |
# File 'rdoc-sources/FXExtentf.rb', line 82 def intersect_with(other); end |
#longest ⇒ Object
Return length of longest side
32 |
# File 'rdoc-sources/FXExtentf.rb', line 32 def longest; end |
#overlap?(other) ⇒ Boolean
Return true
if this extent’s bounds overlap with other extent’s bounds.
73 |
# File 'rdoc-sources/FXExtentf.rb', line 73 def overlap?(other); end |
#radius ⇒ Object
Return radius of box
41 |
# File 'rdoc-sources/FXExtentf.rb', line 41 def radius; end |
#shortest ⇒ Object
Return length of shortest side
35 |
# File 'rdoc-sources/FXExtentf.rb', line 35 def shortest; end |
#unite_with(other) ⇒ Object
Return a new FXExtentf that is the union of this extent and other.
79 |
# File 'rdoc-sources/FXExtentf.rb', line 79 def unite_with(other); end |
#width ⇒ Object
Return width of box
26 |
# File 'rdoc-sources/FXExtentf.rb', line 26 def width; end |