#include <PRISM.HPP>
Public Methods | |
JPrism (double h=0.0, double r=0.0, int x=0, int y=0) | |
void | setHeight (double Height) |
double | getHeight () const |
double | area () const |
double | volume () const |
Protected Attributes | |
JRectangle | rc |
double | height |
double | area_cache |
double | volume_cache |
Friends | |
ostream & | operator<< (ostream &output, const JPrism &pr) |
|
|
|
|
|
Definition at line 45 of file PRISM.CPP. 00045 { 00046 return height; 00047 } |
|
JPrism specific functions. ////////////////////////////////////////////////////////////////////////////.
Definition at line 39 of file PRISM.CPP. 00039 { 00040 height = Height; 00041 return *this; 00042 } |
|
Definition at line 60 of file PRISM.CPP. 00060 { 00061 if ( volume_cache < 0.0 ) { 00062 volume_cache = rc.area() * height; 00063 } 00064 return volume_cache; 00065 } |
|
|
|
|
|
Definition at line 26 of file PRISM.HPP. Referenced by operator<<().
|
|
Definition at line 25 of file PRISM.HPP. Referenced by operator<<().
|
|
|