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

Spherical bounds

Methods

Attributes

center  [RW]  Sphere center [FXVec3d]
radius  [RW]  Sphere radius [Float]

Public Class methods

Default constructor

Initialize sphere to fully contain the given bounding box (an FXRanged instance).

Initialize from center (x, y, z) and radius (rad).

Initialize from center and radius

Copy constructor

Public Instance methods

Return true if this sphere contains the point at (x, y, z).

Return true if this sphere properly contains sphere (another FXSphered instance).

Return true if this sphere properly contains box (an FXRanged instance).

Return true if this sphere contains the point p (an FXVec3d instance).

Return the diameter of this sphere.

Return true if this sphere is empty (i.e. has zero radius).

Include the point p (an FXVec3d instance) and return a reference to self.

Include the sphere sphere (an FXSphered instance) into this sphere and return self.

Include the range box (an FXRanged instance) into this sphere and return self.

Expand radius to include sphere (an FXSphered instance) and return self.

Expand radius to include box (an FXRanged instance) and return a reference to self.

Expand radius to include point (an FXVec3d instance) and return a reference to self.

Expand radius to include point and return a reference to self.

Intersect this sphere with the plane ax+by+cz+w and return -1, 0 or +1. Here, plane is an FXVec4d instance describing the plane.

Return true if this sphere intersects the ray between points u and v (both FXVec3d instances).

Return true if this sphere overlaps with box (an FXRanged instance).

Return true if this sphere overlaps with another sphere.

[Validate]