MultiplyScalar multiplies each component of p by s
(s float32)
| 93 | |
| 94 | // MultiplyScalar multiplies each component of p by s |
| 95 | func (p *Point) MultiplyScalar(s float32) *Point { |
| 96 | p.X *= s |
| 97 | p.Y *= s |
| 98 | return p |
| 99 | } |
| 100 | |
| 101 | // Add sets the components of p to the pointwise summation of p + p2 |
| 102 | func (p *Point) Add(p2 Point) *Point { |
no outgoing calls