ugkcurve.cpp

来自「linux下一款GIS程序源码」· C++ 代码 · 共 51 行

CPP
51
字号
// ugkcurve.cpp: implementation of the UGKCurve class.////////////////////////////////////////////////////////////////////////#include "ugkcurve.h"UGKCurve::UGKCurve(){}UGKCurve::~UGKCurve(){}/************************************************************************//*                            get_IsClosed()                            *//************************************************************************//** * Return TRUE if curve is closed. * * Tests if a curve is closed. A curve is closed if its start point is * equal to its end point. * * This method relates to the SFCOM ICurve::get_IsClosed() method. * * @return TRUE if closed, else FALSE. */int UGKCurve::get_IsClosed() const{    UGKPoint            oStartPoint, oEndPoint;    StartPoint( &oStartPoint );    EndPoint( &oEndPoint );    if( oStartPoint.getX() == oEndPoint.getX()        && oStartPoint.getY() == oEndPoint.getY() )    {        return TRUE;    }    else    {        return FALSE;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?