V returns a new 2D vector with the given coordinates.
(x, y float64)
| 46 | |
| 47 | // V returns a new 2D vector with the given coordinates. |
| 48 | func V(x, y float64) Vec { |
| 49 | return Vec{x, y} |
| 50 | } |
| 51 | |
| 52 | // nearlyEqual compares two float64s and returns whether they are equal, accounting for rounding errors.At worst, the |
| 53 | // result is correct to 7 significant digits. |
no outgoing calls