26 #ifndef _BOARD_PATH_BOUNDARIES_H_
27 #define _BOARD_PATH_BOUNDARIES_H_
49 c = p1.
x * (p2.
y-p1.
y) + p1.
y * (p1.
x-p2.
x);
55 std::vector<Point> pathBoundaryPoints(
const Path & path,
57 Shape::LineCap lineCap,
58 Shape::LineJoin lineJoin,
59 double miterLimit = 4.0);
61 Rect pathBoundingBox(
const Path & path,
63 Shape::LineCap lineCap,
64 Shape::LineJoin lineJoin,
65 double miterLimit = 4.0);
The Point structure. @copyright This source code is part of the Board project, a C++ library whose pu...
A path, according to Postscript and SVG definition.
Definition: Path.h:41
Struct representing a 2D point.
Definition: Point.h:39
double x
Definition: Point.h:40
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...
double y
Definition: Point.h:41
Struct representing a rectangle on the plane.
Definition: Rect.h:38