00001 00012 #include "Size.h" 00013 00014 using namespace hippodraw; 00015 00016 Size::Size() 00017 : m_width( 0.0 ), m_height( 0.0 ), m_depth( 0.0 ) 00018 { 00019 00020 } 00021 00022 Size::Size( double x, double y ) 00023 : m_width( x ), m_height( y ) 00024 { 00025 } 00026 00027 Size::Size( double x, double y, double z ) 00028 : m_width( x ), m_height( y ), m_depth( z ) 00029 { 00030 } 00031 00032 void Size::setSize( double width, double height ) 00033 { 00034 m_width = width; 00035 m_height = height; 00036 } 00037 00038 void Size::setSize( double width, double height, double depth ) 00039 { 00040 m_width = width; 00041 m_height = height; 00042 m_depth = depth; 00043 } 00044 00045 void Size::setDepth ( double d ) 00046 { 00047 m_depth = d; 00048 }