ToPoint returns the vector as an [image.Point].
()
| 131 | |
| 132 | // ToPoint returns the vector as an [image.Point]. |
| 133 | func (a Vector2) ToPoint() image.Point { |
| 134 | return image.Point{int(a.X), int(a.Y)} |
| 135 | } |
| 136 | |
| 137 | // ToPointFloor returns the vector as an [image.Point] with all values [Floor]ed. |
| 138 | func (a Vector2) ToPointFloor() image.Point { |
no outgoing calls