|
|
|
cylindricalcoord.cpp00001 /*************************************************************************** 00002 cylindricalcoord.cpp - description 00003 ------------------- 00004 begin : Mon Dec 2 2002 00005 copyright : (C) 2002 by Fungmeista 00006 email : mizunoami44@users.sourceforge.net 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #include "cylindricalcoord.h" 00019 #include "cartesian3dcoord.h" 00020 00021 CylindricalCoord::CylindricalCoord(double r,double theta,double z) : PolarCoord(r,theta), _z(z) 00022 { 00023 } 00024 00025 Cartesian3DCoord CylindricalCoord::toCartesianCoord() 00026 { 00027 return Cartesian3DCoord(x(),y(),_z); 00028 } 00029 00030 00031 |