C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
alg_curve_distance.h File Reference

Construction of curves in two-dimensional space. More...

`#include <mb_cart_point.h>`
`#include <templ_p_array.h>`
`#include <templ_s_array.h>`

## Classes

struct  MbDistance
Distance between curves. More...

## Functions

void LineParallelPoint (const MbCartPoint &p, const MbLine &pl, MbLine &pl_par)
Construct a line parallel to a given line. More...

void LineParallelDistance (double delta, const MbLine &pl, MbLine &pl_par)
Construct a line parallel to a given line. More...

int LineBisector (const MbCartPoint &p, const MbLine &pl1, const MbLine &pl2, MbLine &pl3)
Construct a line passing through a given point. More...

void LinePointAngle (double angle, const MbCartPoint &p, const MbLine &pl, MbLine &pl_new)
Construct a line passing at angle. More...

int Circle2PointsRadius (const MbCartPoint &p1, const MbCartPoint &p2, double radius, MbTempCircle *circle)
Calculate a circle center.
More...

bool CircleCentre3Points (const MbCartPoint &p1, const MbCartPoint &p2, const MbCartPoint &p3, MbCartPoint &centre)
Calculate center and radius of a circle. More...

bool EllipsePntPntDist (const MbCartPoint &p1, const double &l1, const MbCartPoint &p2, double &l2, MbCartPoint &pc, double &angle)
Construct an ellipse. More...

void LinePointPerpCurve (const MbCartPoint &pnt, const MbCurve &pCurve, PArray< MbLine > &pLine)
Construct a line passing through a given point. More...

int LinePointTangentCircle (const MbCartPoint &p, const MbCartPoint &centre, double radius, MbLine *pl)
Construct a line passing through a given point. More...

void CircleCentreOnCurveRadPointOn (const MbCurve &pCurve, double radius, const MbCartPoint &on, PArray< MbTempCircle > &pCircle)
Construct a circle. More...

void CircleCentreOnCurveTwoPoints (const MbCurve &pCurve, const MbCartPoint &on1, const MbCartPoint &on2, PArray< MbTempCircle > &pCircle)
Construct a circle. More...

bool DistanceCurveCurve (const MbCurve &curve1, const MbCurve &curve2, MbDistance &dmin)
Calculate distance. More...

int Arc2PointsRadius (const MbCartPoint &p1, const MbCartPoint &p2, double rad, bool clockwise, MbArc *arc)
Construct a circle arc. More...

void CalculateUV (const MbCurve &curve1, const MbCurve &curve2, double &u, double &v)
Calculate parameters of curves. More...

bool PointsOnCurve (ptrdiff_t count, const MbCartPoint &on, const MbCurve &curve, SArray< MbCartPoint > &points, SArray< double > &pars)
Put points on a curve. More...

MbCurveCanonicToParametricConic (double A, double B, double C, double D, double E, double F, double X1, double Y1, double X2, double Y2)
Construct curves. More...

MbCurveFatArcContour (const MbCurve &curve, double eps, double maxRadius, bool mate, VERSION version=Math::DefaultMathVersion())
Approximation of a curve by arcs and segments. More...

## Detailed Description

Construction of curves in two-dimensional space.