OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TPointF Class Reference

TPointF is similar to TPoint, but uses floating variables rather than integers. More...

#include <owl/geometry.h>

Inheritance diagram for owl::TPointF:
owl::tPOINTF

Public Member Functions

 TPointF ()
 Default constructor that does nothing.
 
 TPointF (float _x, float _y)
 Constructor that initializes the location.
 
 TPointF (const TPointF &point)
 Constructor that copies the location.
 
bool operator== (const TPointF &other) const
 Returns true if the points are at the same location.
 
bool operator!= (const TPointF &other) const
 Return true if the points are not at the same location.
 
float X () const
 Returns X component of the point.
 
float Y () const
 Returns Y component of the point.
 
TPointF OffsetBy (float dx, float dy) const
 Moves the point by an offset.
 
TPointF operator+ (const TPointF &size) const
 Returns a new point (x+cx, y+cy).
 
TPointF operator- (const TPointF &point) const
 Returns a new point subtracted from the current point.
 
TPointF operator- () const
 Returns the negative of the point.
 
TPointFOffset (float dx, float dy)
 Moves the point by an offset.
 
TPointFoperator+= (const TPointF &size)
 Returns the new point moved by the offset.
 
TPointFoperator-= (const TPointF &size)
 Returns the new point subtracted from the current.
 

Additional Inherited Members

- Public Attributes inherited from owl::tPOINTF
float x
 
float y
 

Detailed Description

TPointF is similar to TPoint, but uses floating variables rather than integers.

Definition at line 181 of file geometry.h.

Constructor & Destructor Documentation

◆ TPointF() [1/3]

owl::TPointF::TPointF ( )
inline

Default constructor that does nothing.

Definition at line 750 of file geometry.h.

References owl::tPOINTF::x, and owl::tPOINTF::y.

◆ TPointF() [2/3]

owl::TPointF::TPointF ( float _x,
float _y )
inline

Constructor that initializes the location.

Definition at line 760 of file geometry.h.

References owl::tPOINTF::x, and owl::tPOINTF::y.

◆ TPointF() [3/3]

owl::TPointF::TPointF ( const TPointF & point)
inline

Constructor that copies the location.

Definition at line 770 of file geometry.h.

References owl::tPOINTF::x, and owl::tPOINTF::y.

Member Function Documentation

◆ Offset()

TPointF & owl::TPointF::Offset ( float dx,
float dy )
inline

Moves the point by an offset.

Definition at line 852 of file geometry.h.

References owl::tPOINTF::x, and owl::tPOINTF::y.

◆ OffsetBy()

TPointF owl::TPointF::OffsetBy ( float dx,
float dy ) const
inline

Moves the point by an offset.

Definition at line 798 of file geometry.h.

References TPointF(), owl::tPOINTF::x, and owl::tPOINTF::y.

◆ operator!=()

bool owl::TPointF::operator!= ( const TPointF & other) const
inline

Return true if the points are not at the same location.

Definition at line 825 of file geometry.h.

References owl::ToBool(), owl::tPOINTF::x, and owl::tPOINTF::y.

◆ operator+()

TPointF owl::TPointF::operator+ ( const TPointF & size) const
inline

Returns a new point (x+cx, y+cy).

Definition at line 834 of file geometry.h.

References TPointF(), owl::tPOINTF::x, and owl::tPOINTF::y.

◆ operator+=()

TPointF & owl::TPointF::operator+= ( const TPointF & size)
inline

Returns the new point moved by the offset.

Definition at line 863 of file geometry.h.

References owl::tPOINTF::x, and owl::tPOINTF::y.

◆ operator-() [1/2]

TPointF owl::TPointF::operator- ( ) const
inline

Returns the negative of the point.

Definition at line 807 of file geometry.h.

References TPointF(), owl::tPOINTF::x, and owl::tPOINTF::y.

◆ operator-() [2/2]

TPointF owl::TPointF::operator- ( const TPointF & point) const
inline

Returns a new point subtracted from the current point.

Definition at line 843 of file geometry.h.

References TPointF(), owl::tPOINTF::x, and owl::tPOINTF::y.

◆ operator-=()

TPointF & owl::TPointF::operator-= ( const TPointF & size)
inline

Returns the new point subtracted from the current.

Definition at line 874 of file geometry.h.

References owl::tPOINTF::x, and owl::tPOINTF::y.

◆ operator==()

bool owl::TPointF::operator== ( const TPointF & other) const
inline

Returns true if the points are at the same location.

Definition at line 816 of file geometry.h.

References owl::ToBool(), owl::tPOINTF::x, and owl::tPOINTF::y.

◆ X()

float owl::TPointF::X ( ) const
inline

Returns X component of the point.

Definition at line 780 of file geometry.h.

References owl::tPOINTF::x.

◆ Y()

float owl::TPointF::Y ( ) const
inline

Returns Y component of the point.

Definition at line 789 of file geometry.h.

References owl::tPOINTF::y.


The documentation for this class was generated from the following file: