MCPcopy Create free account
hub / github.com/SolarLune/masterplan / newCollidingLine

Function newCollidingLine

intersectingLine.go:9–14  ·  view source on GitHub ↗
(x, y, x2, y2 float32)

Source from the content-addressed store, hash-verified

7}
8
9func 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.
17func (line collidingLine) IntersectionPointsLine(other collidingLine) (Vector, bool) {

Calls

no outgoing calls

Tested by

no test coverage detected