Get the length of this vector (the norm).
()
| 104 | |
| 105 | /// Get the length of this vector (the norm). |
| 106 | func (v B2Vec2) Length() float64 { |
| 107 | return math.Sqrt(v.X*v.X + v.Y*v.Y) |
| 108 | } |
| 109 | |
| 110 | /// Get the length squared. For performance, use this instead of |
| 111 | /// b2Vec2::Length (if possible). |
no outgoing calls
no test coverage detected