Subtract sets the components of p to the pointwise difference of p - p2
(p2 Point)
| 107 | |
| 108 | // Subtract sets the components of p to the pointwise difference of p - p2 |
| 109 | func (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 |
| 116 | func (p *Point) Multiply(p2 Point) *Point { |
no outgoing calls