SetPoint sets the vector from the given [image.Point].
(pt image.Point)
| 119 | |
| 120 | // SetPoint sets the vector from the given [image.Point]. |
| 121 | func (a *Vector2) SetPoint(pt image.Point) { |
| 122 | a.X = float32(pt.X) |
| 123 | a.Y = float32(pt.Y) |
| 124 | } |
| 125 | |
| 126 | // SetFixed sets the vector from the given [fixed.Point26_6]. |
| 127 | func (a *Vector2) SetFixed(pt fixed.Point26_6) { |
no outgoing calls
no test coverage detected