pyllar :: Cube :: Cube :: Class Cube
[hide private]
[frames] | no frames]

Class Cube

source code


The Cube class represents a right, rectangular prism in 3D space.

The Cube class does not necessarily create a cube, only if dx, dy, and dz are equal.

Instance Methods [hide private]
 
__init__(self, x=0, y=0, z=0, dx=1, dy=1, dz=1)
Create an isntance of the Cube class.
source code
 
SetDirection(self, dir)
Set the direction vector (vector defining the z axis of the cube).
source code

Inherited from Plottable.Plottable: AddToAxes, GetBounds, SetColor, SetOpacity, SetScale, UpdatePos

Method Details [hide private]

__init__(self, x=0, y=0, z=0, dx=1, dy=1, dz=1)
(Constructor)

source code 

Create an isntance of the Cube class.

x, y, and z are the coordinates of the center of the cube. dx, dy, and dz are the thicknesses of the cube in each dimension.
Overrides: Plottable.Plottable.__init__

SetDirection(self, dir)

source code 
Set the direction vector (vector defining the z axis of the cube).
Overrides: Plottable.Plottable.SetDirection