(other Vector)
| 153 | } |
| 154 | |
| 155 | func (point Vector) DistanceSquared(other Vector) float32 { |
| 156 | return float32(math.Pow(float64(other.X-point.X), 2) + math.Pow(float64(other.Y-point.Y), 2)) |
| 157 | } |
| 158 | |
| 159 | func (point Vector) Distance(other Vector) float32 { |
| 160 | return float32(math.Sqrt(float64(point.DistanceSquared(other)))) |
no outgoing calls
no test coverage detected