Class Fox::FXExtentf
In: rdoc-sources/FXExtentf.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 FXVec2f instance).
upper  [R]  Upper corner of this extent (an FXVec2f instance).

Public Class methods

Default constructor

Copy constructor

Initialize from four numbers

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

Public Instance methods

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

Return center of box (as an FXVec2f)

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

Return true if box contains point (x, y)

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

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

Compute diagonal vector (returns an FXVec2f)

Return length of diagonal

Return true if empty

Return height of box

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

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

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

Return a new FXExtentf 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 FXExtentf that is the union of this extent and other.

Return width of box

[Validate]