LibreOffice Module basegfx (master) 1
Public Member Functions | Static Public Member Functions | List of all members
basegfx::B2DTuple Class Reference

Base class for all Points/Vectors with two double values. More...

#include <b2dtuple.hxx>

Inheritance diagram for basegfx::B2DTuple:
[legend]
Collaboration diagram for basegfx::B2DTuple:
[legend]

Public Member Functions

 B2DTuple ()
 Create a 2D Tuple. More...
 
 B2DTuple (double fX, double fY)
 Create a 2D Tuple. More...
 
 B2DTuple (Tuple2D< double > const &rTuple)
 
BASEGFX_DLLPUBLIC B2DTuple (const B2ITuple &rTup)
 Create a copy of a 2D integer Tuple. More...
 
B2DTuple operator- (void) const
 
- Public Member Functions inherited from basegfx::Tuple2D< double >
 Tuple2D (double x, double y)
 Create a 2D Tuple. More...
 
double get (Axis2D eAxis)
 
void set (Axis2D eAxis, double fValue)
 
double getX () const
 Get X-Coordinate of 2D Tuple. More...
 
double getY () const
 Get Y-Coordinate of 2D Tuple. More...
 
void setX (double fX)
 Set X-Coordinate of 2D Tuple. More...
 
void setY (double fY)
 Set Y-Coordinate of 2D Tuple. More...
 
void adjustX (double fX)
 Adjust X-Coordinate of 2D Tuple. More...
 
void adjustY (double fY)
 Adjust Y-Coordinate of 2D Tuple. More...
 
bool equal (const Tuple2D< double > &rTup) const
 
bool equal (const Tuple2D< double > &rTup) const
 
bool equalZero () const
 
bool equalZero () const
 
Tuple2D< double > & operator+= (const Tuple2D< double > &rTup)
 
Tuple2D< double > & operator-= (const Tuple2D< double > &rTup)
 
Tuple2D< double > & operator/= (const Tuple2D< double > &rTup)
 
Tuple2D< double > & operator/= (double t)
 
Tuple2D< double > & operator*= (const Tuple2D< double > &rTup)
 
Tuple2D< double > & operator*= (double t)
 
Tuple2D< double > operator- (void) const
 
bool operator== (const Tuple2D< double > &rTup) const
 
bool operator!= (const Tuple2D< double > &rTup) const
 

Static Public Member Functions

static BASEGFX_DLLPUBLIC const B2DTuplegetEmptyTuple ()
 

Additional Inherited Members

- Public Attributes inherited from basegfx::Tuple2D< double >
double mnX
 
double mnY
 
double mfX
 
double mfY
 
- Protected Attributes inherited from basegfx::Tuple2D< double >
union {
   struct {
      TYPE   mnX
 
      TYPE   mnY
 
   } 
 
   struct {
      TYPE   mfX
 
      TYPE   mfY
 
   } 
 
}; 
 

Detailed Description

Base class for all Points/Vectors with two double values.

This class provides all methods common to Point and Vector classes which are derived from here.

Derive: \n Use this class to implement Points or Vectors
which are based on two double values

Definition at line 38 of file b2dtuple.hxx.

Constructor & Destructor Documentation

◆ B2DTuple() [1/4]

basegfx::B2DTuple::B2DTuple ( )
inline

Create a 2D Tuple.

The tuple is initialized to (0.0, 0.0)

Definition at line 46 of file b2dtuple.hxx.

◆ B2DTuple() [2/4]

basegfx::B2DTuple::B2DTuple ( double  fX,
double  fY 
)
inline

Create a 2D Tuple.

Parameters
fXThis parameter is used to initialize the X-coordinate of the 2D Tuple.
fYThis parameter is used to initialize the Y-coordinate of the 2D Tuple.

Definition at line 60 of file b2dtuple.hxx.

◆ B2DTuple() [3/4]

basegfx::B2DTuple::B2DTuple ( Tuple2D< double > const &  rTuple)
inline

Definition at line 64 of file b2dtuple.hxx.

◆ B2DTuple() [4/4]

basegfx::B2DTuple::B2DTuple ( const B2ITuple rTup)
explicit

Create a copy of a 2D integer Tuple.

Parameters
rTupThe 2D Tuple which will be copied.

Definition at line 32 of file b2dtuple.cxx.

Member Function Documentation

◆ getEmptyTuple()

const B2DTuple & basegfx::B2DTuple::getEmptyTuple ( )
static

◆ operator-()

B2DTuple basegfx::B2DTuple::operator- ( void  ) const
inline

Definition at line 77 of file b2dtuple.hxx.

References mfX, and mfY.


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