CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | Public Attributes | List of all members
CartoType::TOutlinePointFP Class Reference

#include <cartotype_base.h>

Inheritance diagram for CartoType::TOutlinePointFP:
CartoType::TPoint2< double >

Public Member Functions

constexpr TOutlinePointFP () noexcept
 
constexpr TOutlinePointFP (const TOutlinePointFP &aPoint)=default
 
constexpr TOutlinePointFP (const TPoint &aPoint) noexcept
 
constexpr TOutlinePointFP (const TOutlinePoint &aPoint) noexcept
 
constexpr TOutlinePointFP (const TPoint &aPoint, TPointType aType) noexcept
 
constexpr TOutlinePointFP (const TPointFP &aPoint) noexcept
 
constexpr TOutlinePointFP (const TPointFP &aPoint, TPointType aType) noexcept
 
constexpr TOutlinePointFP (double aX, double aY) noexcept
 
constexpr TOutlinePointFP (double aX, double aY, TPointType aType) noexcept
 
constexpr bool operator== (const TOutlinePointFP &aPoint) const noexcept
 
constexpr bool operator!= (const TOutlinePointFP &aPoint) const noexcept
 
- Public Member Functions inherited from CartoType::TPoint2< double >
constexpr TPoint2 () noexcept
 
constexpr TPoint2 (double aX, double aY) noexcept
 
constexpr TPoint2 (const TPoint &aPoint) noexcept
 
bool operator== (const TPoint2< double > &aPoint) const noexcept
 
bool operator!= (const TPoint2< double > &aPoint) const noexcept
 
void operator+= (const TPoint2< double > &aPoint) noexcept
 
void operator-= (const TPoint2< double > &aPoint) noexcept
 
void operator*= (double aFactor) noexcept
 
bool operator< (const TPoint2< double > &aPoint) const noexcept
 
bool operator> (const TPoint2< double > &aPoint) const noexcept
 
double VectorLength () const noexcept
 
double DistanceFrom (const TPoint2< double > &aOther) const noexcept
 
double CrossProduct (const TPoint2< double > &aOther) const noexcept
 
TPoint2 UnitVector () const noexcept
 
TPoint2 LeftUnitVector () const noexcept
 
TPoint2 RightUnitVector () const noexcept
 
bool LeftOfVector (const TPoint2< double > &aPoint) const noexcept
 
bool RightOfVector (const TPoint2< double > &aPoint) const noexcept
 
TPoint Rounded () const noexcept
 
TPoint Rounded64ths () const noexcept
 
void Rotate (double aAngle)
 

Public Attributes

TPointType iType { TPointType::OnCurve }
 
- Public Attributes inherited from CartoType::TPoint2< double >
double iX
 
double iY
 

Detailed Description

A point on a path, using floating-point coordinates. Paths are made from straight line segments and Bezier splines.

Constructor & Destructor Documentation

◆ TOutlinePointFP() [1/9]

constexpr CartoType::TOutlinePointFP::TOutlinePointFP ( )
inlineconstexprnoexcept

Create an on-curve outline point with the coordinates (0,0).

◆ TOutlinePointFP() [2/9]

constexpr CartoType::TOutlinePointFP::TOutlinePointFP ( const TOutlinePointFP aPoint)
constexprdefault

The copy constructor.

◆ TOutlinePointFP() [3/9]

constexpr CartoType::TOutlinePointFP::TOutlinePointFP ( const TPoint aPoint)
inlineconstexprnoexcept

Create an on-curve outline point from a TPoint.

◆ TOutlinePointFP() [4/9]

constexpr CartoType::TOutlinePointFP::TOutlinePointFP ( const TOutlinePoint aPoint)
inlineconstexprnoexcept

Create an outline point from a TOutlinePoint.

◆ TOutlinePointFP() [5/9]

constexpr CartoType::TOutlinePointFP::TOutlinePointFP ( const TPoint aPoint,
TPointType  aType 
)
inlineconstexprnoexcept

Create an outline point from a TPoint and a type.

◆ TOutlinePointFP() [6/9]

constexpr CartoType::TOutlinePointFP::TOutlinePointFP ( const TPointFP aPoint)
inlineconstexprnoexcept

Create an on-curve outline point from a TPoint.

◆ TOutlinePointFP() [7/9]

constexpr CartoType::TOutlinePointFP::TOutlinePointFP ( const TPointFP aPoint,
TPointType  aType 
)
inlineconstexprnoexcept

Create an outline point from a TPoint and a type.

◆ TOutlinePointFP() [8/9]

constexpr CartoType::TOutlinePointFP::TOutlinePointFP ( double  aX,
double  aY 
)
inlineconstexprnoexcept

Create an on-curve outline point, specifying coordinates.

◆ TOutlinePointFP() [9/9]

constexpr CartoType::TOutlinePointFP::TOutlinePointFP ( double  aX,
double  aY,
TPointType  aType 
)
inlineconstexprnoexcept

Create an outline point, specifying coordinates and type.

Member Function Documentation

◆ operator!=()

constexpr bool CartoType::TOutlinePointFP::operator!= ( const TOutlinePointFP aPoint) const
inlineconstexprnoexcept

The inequality operator.

◆ operator==()

constexpr bool CartoType::TOutlinePointFP::operator== ( const TOutlinePointFP aPoint) const
inlineconstexprnoexcept

The equality operator.

Member Data Documentation

◆ iType

TPointType CartoType::TOutlinePointFP::iType { TPointType::OnCurve }

The type of an outline point: on-curve, or a quadratic or cubic control point.


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