MCPcopy Create free account
hub / github.com/EngoEngine/engo / Subtract

Method Subtract

math.go:109–113  ·  view source on GitHub ↗

Subtract sets the components of p to the pointwise difference of p - p2

(p2 Point)

Source from the content-addressed store, hash-verified

107
108// Subtract sets the components of p to the pointwise difference of p - p2
109func (p *Point) Subtract(p2 Point) *Point {
110 p.X -= p2.X
111 p.Y -= p2.Y
112 return p
113}
114
115// Multiply sets the components of p to the pointwise product of p * p2
116func (p *Point) Multiply(p2 Point) *Point {

Callers 4

LineIntersectionFunction · 0.80
LineTraceFunction · 0.80
TestPointMethodChainFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestPointMethodChainFunction · 0.64