TPoint Class Reference

[tvision Index] [tvision Hierarchy] [Headers]


A screen coordinate More...

#include <objects.h>

Public Members


Detailed Description

A screen coordinate.

TPoint is a simple object that can be used to record a coordinate on the screen. For this, two public variables are available: `x' and `y'.

See Also: TRect


TPoint& operator+=( const TPoint& adder ) [public]

Adds the coordinate of another point to this point.

TPoint& operator-=( const TPoint& subber ) [public]

Subtracts the coordinate of another point from this point.

friend TPoint operator -( const TPoint& one, const TPoint& two) [public]

Calculates the distance between two points.

Returns:
a point with the resulting difference.

friend TPoint operator +( const TPoint& one, const TPoint& two ) [public]

Calculates the sum of two points.

Returns:
a point with the resulting sum.

friend int operator ==( const TPoint& one, const TPoint& two) [public]

Checks if two points are equal (have the same coordinate).

friend int operator !=( const TPoint& one, const TPoint& two) [public]

Checks if two points are not equal (have different coordinate).


Documentation generated by sergio@athena.milk.it on Wed Feb 10 22:11:47 CET 1999
Kdoc