Class Fox::FXExtentd
In: rdoc-sources/FXExtentd.rb
Parent: Object

Methods

[]   center   contains?   contains?   contains?   corner   diagonal   diameter   empty?   height   include!   include!   include!   intersect_with   longest   new   new   new   new   overlap?   radius   shortest   unite_with   width  

Attributes

lower  [R]  Lower corner of this extent (an FXVec2d instance).
upper  [R]  Upper corner of this extent (an FXVec2d instance).

Public Class methods

Default constructor

Copy constructor

Initialize from four numbers

Initialize from two vectors (where lo and hi are two FXVec2d instances).

Public Instance methods

Indexing with 0..1 (returns an FXVec2d instance).

Return center of box (as an FXVec2d)

Return true if box properly contains another box (where ext is another FXExtentd instance).

Return true if box contains point (x, y)

Return true if box contains point p (an FXVec2d instance)

Return corner number 0, 1, 2 or 3 (as a FXVec2d instance).

Compute diagonal vector (returns an FXVec2d)

Return length of diagonal

Return true if empty

Return height of box

Include given range into extent (where ext is another FXExtentd instance) and return a reference to self.

Include point v (an FXVec2d instance) and return a reference to self.

Include point (x, y) and return a reference to self.

Return a new FXExtentd that is the intersection of this extent and other.

Return length of longest side

Return true if this extent‘s bounds overlap with other extent‘s bounds.

Return radius of box

Return length of shortest side

Return a new FXExtentd that is the union of this extent and other.

Return width of box

[Validate]