(x, y, x2, y2 float32)
| 7 | } |
| 8 | |
| 9 | func newCollidingLine(x, y, x2, y2 float32) collidingLine { |
| 10 | return collidingLine{ |
| 11 | Start: Vector{x, y}, |
| 12 | End: Vector{x2, y2}, |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | // IntersectionPointsLine returns the intersection point of a Line with another Line as a Vector, and if the intersection was found. |
| 17 | func (line collidingLine) IntersectionPointsLine(other collidingLine) (Vector, bool) { |
no outgoing calls
no test coverage detected