(Vector2 p1, Vector2 p2)
| 82 | } |
| 83 | |
| 84 | public static Vector2 getMidpoint(Vector2 p1, Vector2 p2) { |
| 85 | Vector2 result = new Vector2(); |
| 86 | result.x = (p1.x + p2.x) / 2; |
| 87 | result.y = (p1.y + p2.y) / 2; |
| 88 | return result; |
| 89 | } |
| 90 | |
| 91 | public static Vector2 getArbitaryPoint(float x1, float y1, float x2, float y2, float percentage) { |
| 92 | Vector2 result = new Vector2(); |
no outgoing calls
no test coverage detected