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

Spherical bounds

Methods

Attributes

center  [RW]  Sphere center [FXVec3f]
radius  [RW]  Sphere radius [Float]

Public Class methods

Default constructor

Initialize sphere to fully contain the given bounding box (an FXRangef 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 FXSpheref instance).

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

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

Return the diameter of this sphere.

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

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

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

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

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

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

Expand radius to include sphere (an FXSpheref instance) and return 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 FXVec4f instance describing the plane.

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

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

Return true if this sphere overlaps with another sphere.

[Validate]