MCPcopy
hub / github.com/tdewolff/canvas / Add

Method Add

util.go:260–262  ·  view source on GitHub ↗

Add adds Q to P.

(q Point)

Source from the content-addressed store, hash-verified

258
259// Add adds Q to P.
260func (p Point) Add(q Point) Point {
261 return Point{p.X + q.X, p.Y + q.Y}
262}
263
264// Sub subtracts Q from P.
265func (p Point) Sub(q Point) Point {

Callers 5

CoordDirectionsMethod · 0.95
ParseSVGPathFunction · 0.95
addCubicBezierLineFunction · 0.95
CentroidMethod · 0.95
JoinMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected