CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | Public Attributes | List of all members
CartoTypeCore::OutlinePointFP Class Reference

#include <cartotype_base.h>

Inheritance diagram for CartoTypeCore::OutlinePointFP:
CartoTypeCore::Point2< double >

Public Member Functions

constexpr OutlinePointFP () noexcept
 
constexpr OutlinePointFP (const Point &aPoint) noexcept
 
constexpr OutlinePointFP (const Point &aPoint, PointType aType) noexcept
 
constexpr OutlinePointFP (const PointFP &aPoint) noexcept
 
constexpr OutlinePointFP (const PointFP &aPoint, PointType aType) noexcept
 
constexpr OutlinePointFP (double aX, double aY) noexcept
 
constexpr OutlinePointFP (double aX, double aY, PointType aType) noexcept
 
constexpr bool operator== (const OutlinePointFP &aPoint) const noexcept
 
constexpr bool operator!= (const OutlinePointFP &aPoint) const noexcept
 
- Public Member Functions inherited from CartoTypeCore::Point2< double >
constexpr Point2 () noexcept
 
constexpr Point2 (double aX, double aY) noexcept
 
constexpr Point2 (const Point &aPoint) noexcept
 
bool operator== (const Point2< double > &aPoint) const noexcept
 
bool operator!= (const Point2< double > &aPoint) const noexcept
 
void operator+= (const Point2< double > &aPoint) noexcept
 
void operator-= (const Point2< double > &aPoint) noexcept
 
void operator*= (double aFactor) noexcept
 
bool operator< (const Point2< double > &aPoint) const noexcept
 
bool operator> (const Point2< double > &aPoint) const noexcept
 
double VectorLength () const noexcept
 
double DistanceFrom (const Point2< double > &aOther) const noexcept
 
double CrossProduct (const Point2< double > &aOther) const noexcept
 
Point2 UnitVector () const noexcept
 
Point2 LeftUnitVector () const noexcept
 
Point2 RightUnitVector () const noexcept
 
bool LeftOfVector (const Point2< double > &aPoint) const noexcept
 
bool RightOfVector (const Point2< double > &aPoint) const noexcept
 
Point Rounded () const noexcept
 
Point Rounded64ths () const noexcept
 
void Rotate (double aAngle)
 

Public Attributes

PointType Type { PointType::OnCurve }
 
- Public Attributes inherited from CartoTypeCore::Point2< double >
double X
 
double Y
 

Detailed Description

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

Constructor & Destructor Documentation

◆ OutlinePointFP() [1/7]

constexpr CartoTypeCore::OutlinePointFP::OutlinePointFP ( )
inlineconstexprnoexcept

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

◆ OutlinePointFP() [2/7]

constexpr CartoTypeCore::OutlinePointFP::OutlinePointFP ( const Point aPoint)
inlineconstexprnoexcept

Create an on-curve outline point from a Point.

◆ OutlinePointFP() [3/7]

constexpr CartoTypeCore::OutlinePointFP::OutlinePointFP ( const Point aPoint,
PointType  aType 
)
inlineconstexprnoexcept

Create an outline point from a Point and a type.

◆ OutlinePointFP() [4/7]

constexpr CartoTypeCore::OutlinePointFP::OutlinePointFP ( const PointFP aPoint)
inlineconstexprnoexcept

Create an on-curve outline point from a Point.

◆ OutlinePointFP() [5/7]

constexpr CartoTypeCore::OutlinePointFP::OutlinePointFP ( const PointFP aPoint,
PointType  aType 
)
inlineconstexprnoexcept

Create an outline point from a Point and a type.

◆ OutlinePointFP() [6/7]

constexpr CartoTypeCore::OutlinePointFP::OutlinePointFP ( double  aX,
double  aY 
)
inlineconstexprnoexcept

Create an on-curve outline point, specifying coordinates.

◆ OutlinePointFP() [7/7]

constexpr CartoTypeCore::OutlinePointFP::OutlinePointFP ( double  aX,
double  aY,
PointType  aType 
)
inlineconstexprnoexcept

Create an outline point, specifying coordinates and type.

Member Function Documentation

◆ operator!=()

constexpr bool CartoTypeCore::OutlinePointFP::operator!= ( const OutlinePointFP aPoint) const
inlineconstexprnoexcept

The inequality operator.

◆ operator==()

constexpr bool CartoTypeCore::OutlinePointFP::operator== ( const OutlinePointFP aPoint) const
inlineconstexprnoexcept

The equality operator.

Member Data Documentation

◆ Type

PointType CartoTypeCore::OutlinePointFP::Type { PointType::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: