Exemplo n.º 1
0
/**--------------------------------------------------------------------------<BR>
C2DLine::SetPointFrom
\brief Sets the point that this is going from changing the vector as well.
<P>---------------------------------------------------------------------------*/
void C2DLine::SetPointFrom(const C2DPoint& PointFrom)
{
	// Get point to.
	C2DPoint PointTo(point.x + vector.i, point.y + vector.j);	
	// Set the point from 
	point = PointFrom;
	// Rest the point to.
	vector = PointTo - point;
}
CPointer::CPointer(CEmbeddedObject* pcObject)
{
	mpcEmbedding = NULL;
	mpcObject = NULL;

	LOG_POINTER_DEBUG();

	PointTo(pcObject, FALSE);
}
CPointer::CPointer(CPointer& cPointer)
{
	mpcEmbedding = NULL;
	mpcObject = NULL;

	LOG_POINTER_DEBUG();

	PointTo(cPointer.mpcObject, FALSE);
}
Exemplo n.º 4
0
/**--------------------------------------------------------------------------<BR>
C2DLine::GetPointTo
\brief Returns the second point.
<P>---------------------------------------------------------------------------*/
C2DPoint C2DLine::GetPointTo(void) const
{
	C2DPoint PointTo(point.x + vector.i, point.y + vector.j);
	return PointTo;
}
void CPointer::operator = (CPointer& pcPointer)
{
	LOG_POINTER_DEBUG();

	PointTo(pcPointer.mpcObject, TRUE);
}
void CPointer::operator = (CEmbeddedObject* pcObject)
{
	LOG_POINTER_DEBUG();

	PointTo(pcObject, TRUE);
}