00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "Size.h"
00011
00012 Size::Size()
00013 : m_width( 0.0 ), m_height( 0.0 ), m_depth( 0.0 )
00014 {
00015 }
00016
00017 Size::Size( double x, double y )
00018 : m_width( x ), m_height( y )
00019 {
00020 }
00021
00022 Size::Size( double x, double y, double z )
00023 : m_width( x ), m_height( y ), m_depth( z )
00024 {
00025 }
00026
00027 void Size::setSize( double width, double height )
00028 {
00029 m_width = width;
00030 m_height = height;
00031 }
00032
00033 void Size::setSize( double width, double height, double depth )
00034 {
00035 m_width = width;
00036 m_height = height;
00037 m_depth = depth;
00038 }
00039
00040 void Size::setDepth ( double d )
00041 {
00042 m_depth = d;
00043 }