C# Class MapAround.Rendering.Polygonizer

Преобразователь линий в полигон.
Inheritance: IPolygonizer
Exibir arquivo Open project: gkrsu/maparound.core

Public Methods

Method Description
GetPolygon ( Contour contour ) : IList

Преобразует контур в полигон.

GetPolygon ( LinePath path ) : IList

Преобразует ломаную линию в полигон.

Private Methods

Method Description
addCap ( LineCap cap, IList vertexList, CapLocation capLocation, double x1, double y1, double x2, double y2 ) : void
addInteriorJoin ( IList vertexList, double x1, double y1, double x2, double y2, double x3, double y3 ) : void
addJoin ( LineJoin join, IList vertexList, double x1, double y1, double x2, double y2, double x3, double y3 ) : void
geContourContour ( Contour contour ) : Contour
getAngle ( ICoordinate p1, ICoordinate p2, ICoordinate p3, bool counterClockwise ) : double

Возвращает угол между лучами p2p1 и p2p3 отсчитываемый от луча p2p1

getCirclePoints ( ICoordinate point, double startAngle, double endAngle, double distance, int pointsPerCircle ) : ICoordinate[]
getPathContour ( LinePath path ) : Contour
getSegmentAngle ( double x1, double y1, double x2, double y2 ) : double
pointOnCircle ( double baseX, double baseY, double radius, double angle ) : ICoordinate
pointQuadrantNumber ( ICoordinate p ) : int
translateAngleQuadrant ( double angle, int quadrantNumber ) : double

Method Details

GetPolygon() public method

Преобразует контур в полигон.
public GetPolygon ( Contour contour ) : IList
contour Contour Контур
return IList

GetPolygon() public method

Преобразует ломаную линию в полигон.
public GetPolygon ( LinePath path ) : IList
path LinePath Ломаная линия
return IList