Example #1
0
 //Line
 public static bool RectToLine(float rectX, float rectY, float rectWidth, float rectHeight, float lineStartX, float lineStartY, float lineEndX, float lineEndY)
 {
     return(CohenSutherland.Intersects(rectX, rectY, rectWidth, rectHeight, lineStartX, lineStartY, lineEndX, lineEndY));
 }
Example #2
0
 public static bool RectToLine(RectCollider rect, Vector2 lineStart, Vector2 lineEnd)
 {
     return(CohenSutherland.Intersects(rect, lineStart, lineEnd));
 }
 public static bool RectangleToLine(float rectangleX, float rectangleY, float rectangleWidth, float RectangleHeight, float lineBeginX, float lineBeginY, float lineEndX, float lineEndY)
 {
     return(CohenSutherland.Intersects(rectangleX, rectangleY, rectangleWidth, RectangleHeight, lineBeginX, lineBeginY, lineEndX, lineEndY));
 }