Multiply sets the components of p to the pointwise product of p * p2
(p2 Point)
| 114 | |
| 115 | // Multiply sets the components of p to the pointwise product of p * p2 |
| 116 | func (p *Point) Multiply(p2 Point) *Point { |
| 117 | p.X *= p2.X |
| 118 | p.Y *= p2.Y |
| 119 | return p |
| 120 | } |
| 121 | |
| 122 | // Equal indicates whether two points have the same value, avoiding issues with float precision |
| 123 | func (p *Point) Equal(p2 Point) bool { |
no outgoing calls