6#if !defined(AFX_2DPOINT_H__15665001_0D39_11D3_A380_9A856250DB28__INCLUDED_)
7#define AFX_2DPOINT_H__15665001_0D39_11D3_A380_9A856250DB28__INCLUDED_
15BEGIN_MOOTOOLS_NAMESPACE
34 virtual CPt& operator=(
const CPt& refpoint);
35 virtual void To4DPoint(
C4DPoint& pt)
const;
38 bool operator==(
const C2DTPoint& src)
const;
41 virtual bool IsKindOf(
unsigned int classid)
const;
42 virtual unsigned int ClassID()
const;
53 return MAKE_CUSTOM_ID(
'2',
'D',
'P',
'F');
58 return MAKE_CUSTOM_ID(
'2',
'D',
'P',
'D');
66 return CPt::IsKindOf(classid);
74 return CPt::IsKindOf(classid);
133 XASSERT(refpoint.IsKindOf(C2DTPoint::ClassID()));
138 return CPt::operator=(refpoint);
144 if (x != src.x || y != src.y)
161 XASSERT(pt.size == 2);
162 x = (TYPE)pt.value[0];
163 y = (TYPE)pt.value[1];
170 if (C2DTPoint::ClassID() == classid)
173 return CPt::IsKindOf(classid);
178 return MAKE_CUSTOM_ID(
'2',
'D',
'P',
'T');
183END_MOOTOOLS_NAMESPACE
CPt class is the base class for different class of points (C3DPoint, CUVWPoint...)
The class defines an x, y 2D point which can use int, float or double.
Definition 2DPoint.h:23
CPt base only contains some flags that are used by the derived class.
Definition Point.h:60