Documentation ¶
Index ¶
- type Clipper64
- func (c *Clipper64) AddClip(clips Paths64)
- func (c *Clipper64) AddOpenSubject(open_subjects Paths64)
- func (c *Clipper64) AddSubject(subjects Paths64)
- func (c *Clipper64) Clear()
- func (p *Clipper64) Delete()
- func (p *Clipper64) Destruct()
- func (c64 *Clipper64) Execute(ct ClipperClipType, fr ClipperFillRule, closed Paths64, open Paths64) int64
- func (c64 *Clipper64) ExecuteTree(ct ClipperClipType, fr ClipperFillRule, tree PolyTree64) int64
- func (c64 *Clipper64) ExecuteTreeWithOpen(ct ClipperClipType, fr ClipperFillRule, tree PolyTree64, open Paths64) int64
- func (c *Clipper64) GetPreserveCollinear() int64
- func (c *Clipper64) GetReverseSolution() int64
- func (c *Clipper64) SetPreserveCollinear(t int64)
- func (c *Clipper64) SetReverseSolution(t int64)
- type ClipperClipType
- type ClipperD
- func (c *ClipperD) AddClip(clips PathsD)
- func (c *ClipperD) AddOpenSubject(open_subjects PathsD)
- func (c *ClipperD) AddSubject(subjects PathsD)
- func (c *ClipperD) Clear()
- func (p *ClipperD) Delete()
- func (p *ClipperD) Destruct()
- func (cD *ClipperD) Execute(ct ClipperClipType, fr ClipperFillRule, closed PathsD, open PathsD) int64
- func (cD *ClipperD) ExecuteTree(ct ClipperClipType, fr ClipperFillRule, tree PolyTreeD) int64
- func (cD *ClipperD) ExecuteTreeWithOpen(ct ClipperClipType, fr ClipperFillRule, tree PolyTreeD, open PathsD) int64
- func (c *ClipperD) GetPreserveCollinear() int64
- func (c *ClipperD) GetReverseSolution() int64
- func (c *ClipperD) SetPreserveCollinear(t int64)
- func (c *ClipperD) SetReverseSolution(t int64)
- type ClipperEndType
- type ClipperFillRule
- type ClipperJoinType
- type ClipperOffset
- func (c *ClipperOffset) AddPath64(p Path64, jt ClipperJoinType, et ClipperEndType)
- func (c *ClipperOffset) AddPaths64(p Paths64, jt ClipperJoinType, et ClipperEndType)
- func (c *ClipperOffset) Clear()
- func (p *ClipperOffset) Delete()
- func (p *ClipperOffset) Destruct()
- func (c *ClipperOffset) ErrorCode() int64
- func (c *ClipperOffset) Execute(delta float64) *Paths64
- func (co *ClipperOffset) ExecuteCallback(cb ClipperOffsetCallback) *Paths64
- func (c *ClipperOffset) GetArcTolerance() float64
- func (c *ClipperOffset) GetMiterLimit() float64
- func (c *ClipperOffset) GetPreserveCollinear() int64
- func (c *ClipperOffset) GetReverseSolution() int64
- func (c *ClipperOffset) SetArcTolerance(t float64)
- func (c *ClipperOffset) SetMiterLimit(l float64)
- func (c *ClipperOffset) SetPreserveCollinear(t int64)
- func (c *ClipperOffset) SetReverseSolution(t int64)
- type ClipperOffsetCallback
- type ClipperPathType
- type ClipperPointInPolygonResult
- type Path64
- func (path *Path64) AddPoint(pt Point64)
- func (path *Path64) Area() float64
- func (p *Path64) Delete()
- func (p *Path64) Destruct()
- func (path *Path64) GetPoint(idx int64) Point64
- func (path *Path64) IsPositive() int64
- func (path *Path64) Length() int64
- func (pattern *Path64) MinkowskiDiff(path Path64, is_closed int64) *Paths64
- func (pattern *Path64) MinkowskiSum(path Path64, is_closed int64) *Paths64
- func (path *Path64) RamerDouglasPeucker(epsilon float64) *Path64
- func (path *Path64) Scale(sx float64, sy float64) (*Path64, int)
- func (p *Path64) ScaleToPathD(sx, sy float64) (*PathD, int)
- func (path *Path64) Simplify(epsilon float64, is_open_path int64) *Path64
- func (p *Path64) String() string
- func (path *Path64) StripNearEqual(max_dist_sqrd float64, is_closed_path int64) *Path64
- func (path *Path64) ToPathd() *PathD
- func (path *Path64) ToPoints() []Point64
- func (path *Path64) Translate(dx int64, dy int64) *Path64
- func (path *Path64) TrimCollinear(is_open_path int64) *Path64
- type PathD
- func (path *PathD) AddPoint(pt PointD)
- func (path *PathD) Area() float64
- func (p *PathD) Delete()
- func (p *PathD) Destruct()
- func (path *PathD) GetPoint(idx int64) PointD
- func (path *PathD) IsPositive() int64
- func (path *PathD) Length() int64
- func (pattern *PathD) MinkowskiDiff(path PathD, is_closed int64, precision int64) *PathsD
- func (pattern *PathD) MinkowskiSum(path PathD, is_closed int64, precision int64) *PathsD
- func (path *PathD) RamerDouglasPeucker(epsilon float64) *PathD
- func (path *PathD) Scale(sx float64, sy float64) (*PathD, int)
- func (p *PathD) ScaleToPath64(sx, sy float64) (*Path64, int)
- func (path *PathD) Simplify(epsilon float64, is_open_path int64) *PathD
- func (path *PathD) StripNearEqual(max_dist_sqrd float64, is_closed_path int64) *PathD
- func (path *PathD) ToPath64() *Path64
- func (path *PathD) ToPoints() []PointD
- func (path *PathD) Translate(dx float64, dy float64) *PathD
- func (path *PathD) TrimCollinear(precision int64, is_open_path int64) *PathD
- type Paths64
- func (paths *Paths64) AddPath(p Path64)
- func (paths *Paths64) Area() float64
- func (subjects *Paths64) BooleanOp(clipType ClipperClipType, fillRule ClipperFillRule, clips *Paths64) *Paths64
- func (subjects *Paths64) BooleanOpTree(clipType ClipperClipType, fillRule ClipperFillRule, clips *Paths64) *PolyTree64
- func (paths *Paths64) Bounds() *Rect64
- func (p *Paths64) Delete()
- func (p *Paths64) Destruct()
- func (subjects *Paths64) Difference(clips Paths64, fillrule ClipperFillRule) *Paths64
- func (paths *Paths64) GetPath(idx int64) *Path64
- func (paths *Paths64) GetPoint(path_idx int64, point_idx int64) Point64
- func (paths *Paths64) Inflate(delta float64, jt ClipperJoinType, et ClipperEndType, miter_limit float64) *Paths64
- func (subjects *Paths64) Intersect(clips Paths64, fillrule ClipperFillRule) *Paths64
- func (paths *Paths64) Length() int64
- func (paths *Paths64) Lengths() []int64
- func (paths *Paths64) PathLength(idx int64) int64
- func (paths *Paths64) RamerDouglasPeucker(epsilon float64) *Paths64
- func (path *Paths64) Scale(sx float64, sy float64) (*Paths64, int)
- func (p *Paths64) ScaleToPathsD(sx, sy float64) (*PathsD, int)
- func (paths *Paths64) Simplify(epsilon float64, is_open_paths int64) *Paths64
- func (p *Paths64) String() string
- func (paths *Paths64) StripNearEqual(max_dist_sqrd float64, is_closed_paths int64) *Paths64
- func (paths *Paths64) ToPathsd() *PathsD
- func (p *Paths64) ToPoints() [][]Point64
- func (paths *Paths64) Translate(dx int64, dy int64) *Paths64
- func (subjects *Paths64) Union(clips Paths64, fillrule ClipperFillRule) *Paths64
- func (subjects *Paths64) Xor(clips Paths64, fillrule ClipperFillRule) *Paths64
- type PathsD
- func (paths *PathsD) AddPath(p PathD)
- func (paths *PathsD) Area() float64
- func (subjects *PathsD) BooleanOp(clipType ClipperClipType, fillRule ClipperFillRule, clips *PathsD, ...) *PathsD
- func (subjects *PathsD) BooleanOpTree(clipType ClipperClipType, fillRule ClipperFillRule, clips *PathsD, ...) *PolyTreeD
- func (p *PathsD) Delete()
- func (p *PathsD) Destruct()
- func (subjects *PathsD) Difference(clips PathsD, fillrule ClipperFillRule, decimal_prec int64) *PathsD
- func (paths *PathsD) GetPath(idx int64) *PathD
- func (paths *PathsD) GetPoint(path_idx int64, point_idx int64) PointD
- func (paths *PathsD) Inflate(delta float64, jt ClipperJoinType, et ClipperEndType, miter_limit float64, ...) *PathsD
- func (subjects *PathsD) Intersect(clips PathsD, fillrule ClipperFillRule, decimal_prec int64) *PathsD
- func (paths *PathsD) Length() int64
- func (paths *PathsD) Lengths() []int64
- func (paths *PathsD) PathLength(idx int64) int64
- func (paths *PathsD) RamerDouglasPeucker(epsilon float64) *PathsD
- func (path *PathsD) Scale(sx float64, sy float64) (*PathsD, int)
- func (p *PathsD) ScaleToPaths64(sx, sy float64) (*Paths64, int)
- func (paths *PathsD) Simplify(epsilon float64, is_open_paths int64) *PathsD
- func (paths *PathsD) StripNearEqual(max_dist_sqrd float64, is_closed_paths int64) *PathsD
- func (paths *PathsD) ToPaths64() *Paths64
- func (p *PathsD) ToPoints() [][]PointD
- func (paths *PathsD) Translate(dx float64, dy float64) *PathsD
- func (subjects *PathsD) Union(clips PathsD, fillrule ClipperFillRule, decimal_prec int64) *PathsD
- func (subjects *PathsD) Xor(clips PathsD, fillrule ClipperFillRule, decimal_prec int64) *PathsD
- type Point64
- type PointD
- type PolyTree64
- func (pt *PolyTree64) AddChild(path Path64) *PolyTree64
- func (pt *PolyTree64) Area() float64
- func (pt *PolyTree64) Clear()
- func (pt *PolyTree64) Count() int64
- func (p *PolyTree64) Delete()
- func (p *PolyTree64) Destruct()
- func (pt *PolyTree64) FullyContainsChildren() int64
- func (pt *PolyTree64) GetChild(idx int64) *PolyTree64
- func (pt *PolyTree64) IsHole() int64
- func (pt *PolyTree64) Level() int64
- func (pt *PolyTree64) Parent() *PolyTree64
- func (pt *PolyTree64) Polygon() *Path64
- func (pt *PolyTree64) ToPaths() *Paths64
- type PolyTreeD
- func (pt *PolyTreeD) AddChild(path Path64) *PolyTreeD
- func (pt *PolyTreeD) Area() float64
- func (pt *PolyTreeD) Clear()
- func (pt *PolyTreeD) Count() int64
- func (p *PolyTreeD) Delete()
- func (p *PolyTreeD) Destruct()
- func (pt *PolyTreeD) GetChild(idx int64) *PolyTreeD
- func (pt *PolyTreeD) IsHole() int64
- func (pt *PolyTreeD) Level() int64
- func (pt *PolyTreeD) Parent() *PolyTreeD
- func (pt *PolyTreeD) Polygon() *PathD
- func (pt *PolyTreeD) ToPaths() *PathsD
- type Rect64
- func (r *Rect64) AsPath() *Path64
- func (r *Rect64) ContainsPt(pt Point64) int64
- func (a *Rect64) ContainsRect(b Rect64) int64
- func (p *Rect64) Delete()
- func (p *Rect64) Destruct()
- func (r *Rect64) Height() int64
- func (a *Rect64) Intersects(b Rect64) int64
- func (r *Rect64) IsEmpty() int64
- func (r *Rect64) Midpoint() Point64
- func (r *Rect64) Scale(scale float64) *Rect64
- func (r *Rect64) ScaleMut(scale float64)
- func (rect *Rect64) ToStruct() Rect64
- func (r *Rect64) Width() int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clipper64 ¶
type Clipper64 struct {
// contains filtered or unexported fields
}
func NewClipper64 ¶
func NewClipper64() *Clipper64
func (*Clipper64) AddOpenSubject ¶
func (*Clipper64) AddSubject ¶
func (*Clipper64) Execute ¶
func (c64 *Clipper64) Execute(ct ClipperClipType, fr ClipperFillRule, closed Paths64, open Paths64) int64
func (*Clipper64) ExecuteTree ¶
func (c64 *Clipper64) ExecuteTree(ct ClipperClipType, fr ClipperFillRule, tree PolyTree64) int64
func (*Clipper64) ExecuteTreeWithOpen ¶
func (c64 *Clipper64) ExecuteTreeWithOpen(ct ClipperClipType, fr ClipperFillRule, tree PolyTree64, open Paths64) int64
func (*Clipper64) GetPreserveCollinear ¶
func (*Clipper64) GetReverseSolution ¶
func (*Clipper64) SetPreserveCollinear ¶
func (*Clipper64) SetReverseSolution ¶
type ClipperClipType ¶
type ClipperClipType int
const ( None ClipperClipType = 0 Intersection ClipperClipType = 1 Union ClipperClipType = 2 Difference ClipperClipType = 3 XOR ClipperClipType = 4 )
type ClipperD ¶
type ClipperD struct {
// contains filtered or unexported fields
}
func NewClipperd ¶
func (*ClipperD) AddOpenSubject ¶
func (*ClipperD) AddSubject ¶
func (*ClipperD) Execute ¶
func (cD *ClipperD) Execute(ct ClipperClipType, fr ClipperFillRule, closed PathsD, open PathsD) int64
func (*ClipperD) ExecuteTree ¶
func (cD *ClipperD) ExecuteTree(ct ClipperClipType, fr ClipperFillRule, tree PolyTreeD) int64
func (*ClipperD) ExecuteTreeWithOpen ¶
func (cD *ClipperD) ExecuteTreeWithOpen(ct ClipperClipType, fr ClipperFillRule, tree PolyTreeD, open PathsD) int64
func (*ClipperD) GetPreserveCollinear ¶
func (*ClipperD) GetReverseSolution ¶
func (*ClipperD) SetPreserveCollinear ¶
func (*ClipperD) SetReverseSolution ¶
type ClipperEndType ¶
type ClipperEndType int
const ( PolygonEnd ClipperEndType = 0 JoinedEnd ClipperEndType = 1 ButtEnd ClipperEndType = 2 SquareEnd ClipperEndType = 3 RoundEnd ClipperEndType = 4 )
type ClipperFillRule ¶
type ClipperFillRule int
const ( EvenOdd ClipperFillRule = 0 NonZero ClipperFillRule = 1 Positive ClipperFillRule = 2 Negative ClipperFillRule = 3 )
type ClipperJoinType ¶
type ClipperJoinType int
const ( SquareJoin ClipperJoinType = 0 RoundJoin ClipperJoinType = 1 MiterJoin ClipperJoinType = 2 )
type ClipperOffset ¶
type ClipperOffset struct {
// contains filtered or unexported fields
}
func NewClipperoffset ¶
func NewClipperoffset(miter_limit float64, arc_tolerance float64, preserve_collinear int64, reverse_solution int64) *ClipperOffset
func (*ClipperOffset) AddPath64 ¶
func (c *ClipperOffset) AddPath64(p Path64, jt ClipperJoinType, et ClipperEndType)
func (*ClipperOffset) AddPaths64 ¶
func (c *ClipperOffset) AddPaths64(p Paths64, jt ClipperJoinType, et ClipperEndType)
func (*ClipperOffset) Clear ¶
func (c *ClipperOffset) Clear()
func (*ClipperOffset) Delete ¶
func (p *ClipperOffset) Delete()
func (*ClipperOffset) Destruct ¶
func (p *ClipperOffset) Destruct()
func (*ClipperOffset) ErrorCode ¶
func (c *ClipperOffset) ErrorCode() int64
func (*ClipperOffset) Execute ¶
func (c *ClipperOffset) Execute(delta float64) *Paths64
func (*ClipperOffset) ExecuteCallback ¶ added in v0.0.8
func (co *ClipperOffset) ExecuteCallback(cb ClipperOffsetCallback) *Paths64
func (*ClipperOffset) GetArcTolerance ¶
func (c *ClipperOffset) GetArcTolerance() float64
func (*ClipperOffset) GetMiterLimit ¶
func (c *ClipperOffset) GetMiterLimit() float64
func (*ClipperOffset) GetPreserveCollinear ¶
func (c *ClipperOffset) GetPreserveCollinear() int64
func (*ClipperOffset) GetReverseSolution ¶
func (c *ClipperOffset) GetReverseSolution() int64
func (*ClipperOffset) SetArcTolerance ¶
func (c *ClipperOffset) SetArcTolerance(t float64)
func (*ClipperOffset) SetMiterLimit ¶
func (c *ClipperOffset) SetMiterLimit(l float64)
func (*ClipperOffset) SetPreserveCollinear ¶
func (c *ClipperOffset) SetPreserveCollinear(t int64)
func (*ClipperOffset) SetReverseSolution ¶
func (c *ClipperOffset) SetReverseSolution(t int64)
type ClipperOffsetCallback ¶ added in v0.0.8
type ClipperPathType ¶
type ClipperPathType int
const ( Subject ClipperPathType = 0 Clip ClipperPathType = 1 )
type ClipperPointInPolygonResult ¶
type ClipperPointInPolygonResult int
const ( IsOn ClipperPointInPolygonResult = 0 IsInside ClipperPointInPolygonResult = 1 IsOutside ClipperPointInPolygonResult = 2 )
type Path64 ¶
type Path64 struct {
// contains filtered or unexported fields
}
func NewPath64Ellipse ¶
func NewPath64MustOfString ¶
func NewPath64OfPoints ¶
func NewPath64OfString ¶
func (*Path64) IsPositive ¶
func (*Path64) MinkowskiDiff ¶
func (*Path64) MinkowskiSum ¶
func (*Path64) RamerDouglasPeucker ¶
func (*Path64) StripNearEqual ¶
func (*Path64) TrimCollinear ¶
type PathD ¶
type PathD struct {
// contains filtered or unexported fields
}
func NewPathDOfPoints ¶
func NewPathdEllipse ¶
func (*PathD) IsPositive ¶
func (*PathD) MinkowskiDiff ¶
func (*PathD) MinkowskiSum ¶
func (*PathD) RamerDouglasPeucker ¶
func (*PathD) StripNearEqual ¶
type Paths64 ¶
type Paths64 struct {
// contains filtered or unexported fields
}
func NewPaths64 ¶
func NewPaths64() *Paths64
func NewPaths64OfPaths ¶
func (*Paths64) BooleanOp ¶
func (subjects *Paths64) BooleanOp(clipType ClipperClipType, fillRule ClipperFillRule, clips *Paths64) *Paths64
func (*Paths64) BooleanOpTree ¶
func (subjects *Paths64) BooleanOpTree(clipType ClipperClipType, fillRule ClipperFillRule, clips *Paths64) *PolyTree64
func (*Paths64) Difference ¶
func (subjects *Paths64) Difference(clips Paths64, fillrule ClipperFillRule) *Paths64
func (*Paths64) Inflate ¶
func (paths *Paths64) Inflate(delta float64, jt ClipperJoinType, et ClipperEndType, miter_limit float64) *Paths64
func (*Paths64) Intersect ¶
func (subjects *Paths64) Intersect(clips Paths64, fillrule ClipperFillRule) *Paths64
func (*Paths64) PathLength ¶
func (*Paths64) RamerDouglasPeucker ¶
func (*Paths64) StripNearEqual ¶
type PathsD ¶
type PathsD struct {
// contains filtered or unexported fields
}
func NewPathsdOfPaths ¶
func (*PathsD) BooleanOp ¶
func (subjects *PathsD) BooleanOp(clipType ClipperClipType, fillRule ClipperFillRule, clips *PathsD, decimalPrec int) *PathsD
func (*PathsD) BooleanOpTree ¶
func (subjects *PathsD) BooleanOpTree(clipType ClipperClipType, fillRule ClipperFillRule, clips *PathsD, decimalPrec int) *PolyTreeD
func (*PathsD) Difference ¶
func (subjects *PathsD) Difference(clips PathsD, fillrule ClipperFillRule, decimal_prec int64) *PathsD
func (*PathsD) Inflate ¶
func (paths *PathsD) Inflate(delta float64, jt ClipperJoinType, et ClipperEndType, miter_limit float64, precision int64) *PathsD
func (*PathsD) Intersect ¶
func (subjects *PathsD) Intersect(clips PathsD, fillrule ClipperFillRule, decimal_prec int64) *PathsD
func (*PathsD) PathLength ¶
func (*PathsD) RamerDouglasPeucker ¶
func (*PathsD) StripNearEqual ¶
type Point64 ¶
type Point64 struct {
// contains filtered or unexported fields
}
func NewPoint64 ¶
func (*Point64) InPath64 ¶
func (p *Point64) InPath64(path *Path64) ClipperPointInPolygonResult
func (*Point64) NearCollinear ¶
type PointD ¶
type PointD struct {
// contains filtered or unexported fields
}
func (*PointD) InPath64 ¶
func (p *PointD) InPath64(path *PathD) ClipperPointInPolygonResult
func (*PointD) NearCollinear ¶
type PolyTree64 ¶
type PolyTree64 struct {
// contains filtered or unexported fields
}
func NewPolytree64 ¶
func NewPolytree64(parent PolyTree64) *PolyTree64
func (*PolyTree64) AddChild ¶
func (pt *PolyTree64) AddChild(path Path64) *PolyTree64
func (*PolyTree64) Area ¶
func (pt *PolyTree64) Area() float64
func (*PolyTree64) Clear ¶
func (pt *PolyTree64) Clear()
func (*PolyTree64) Count ¶
func (pt *PolyTree64) Count() int64
func (*PolyTree64) Delete ¶
func (p *PolyTree64) Delete()
func (*PolyTree64) Destruct ¶
func (p *PolyTree64) Destruct()
func (*PolyTree64) FullyContainsChildren ¶
func (pt *PolyTree64) FullyContainsChildren() int64
func (*PolyTree64) GetChild ¶
func (pt *PolyTree64) GetChild(idx int64) *PolyTree64
func (*PolyTree64) IsHole ¶
func (pt *PolyTree64) IsHole() int64
func (*PolyTree64) Level ¶
func (pt *PolyTree64) Level() int64
func (*PolyTree64) Parent ¶
func (pt *PolyTree64) Parent() *PolyTree64
func (*PolyTree64) Polygon ¶
func (pt *PolyTree64) Polygon() *Path64
func (*PolyTree64) ToPaths ¶
func (pt *PolyTree64) ToPaths() *Paths64
type PolyTreeD ¶
type PolyTreeD struct {
// contains filtered or unexported fields
}
func NewPolytreed ¶
type Rect64 ¶
type Rect64 struct {
// contains filtered or unexported fields
}
func (*Rect64) ContainsPt ¶
func (*Rect64) ContainsRect ¶
func (*Rect64) Intersects ¶
Click to show internal directories.
Click to hide internal directories.