OESphere

OESphere class represents a sphere.

Constructor

OESphere() -> OESphere
OESphere(x: float, y: float, z: float, rad: float) -> OESphere
OESphere(arg2: OESphere) -> OESphere

Default and copy constructors. The third overload requires the center of the sphere, specified by x, y, and z, and the radius.

Assignment operator.

GetArea

GetArea() -> float

Returns the surface area of the sphere

GetVolume

GetVolume() -> float

Returns the volume of the sphere

GetX

GetX() -> float

Returns the X coordinate of the center of the sphere

GetY

GetY() -> float

Returns the Y coordinate of the center of the sphere

GetZ

GetZ() -> float

Return the Z coordinate of the center of the sphere

GetRad

GetRad() -> float

Returns the radius of the sphere

IsInside

IsInside(x: float, y: float, z: float) -> bool

Returns if the specified point is inside the sphere

SetRad

SetRad(rad: float) -> bool

Sets the radius of the sphere to rad. Will fail and return false if rad < 0.

SetCenter

SetCenter(x: float, y: float, z: float) -> bool

Sets the center of the sphere.