Method | Description | |
---|---|---|
IsPointInSegmentRange ( |
Check if a point is in the "range" of a segment. This essentially checks if the point is within the segment's bounding box.
|
|
IsPointInSegmentRange ( double px, double py, double x1, double y1, double x2, double y2 ) : bool |
Check if a point is in the "range" of a segment. This essentially checks if the point is within the segment's bounding box.
|
|
LineIntersectionPoint ( |
Calculate the intersection point between two lines (or null if they are parallel).
|
|
LineIntersectionPoint ( double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4 ) : Vector2? |
Calculate the intersection point between two lines (or null if they are parallel).
|
|
LineToSegmentIntersectionPoint ( |
Calculate the intersection point between a line and a line segment (or null if they do not intersect).
|
|
LineToSegmentIntersectionPoint ( double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4 ) : Vector2? |
Calculate the intersection point between a line and a line segment (or null if they do not intersect).
|
|
PointOnLine ( |
Check if a point lies on a given line.
|
|
PointOnLine ( double px, double py, double x1, double y1, double x2, double y2 ) : bool |
Check if a point lies on a given line.
|
|
PointOnSegment ( |
Check if a point lies on a given line segment.
|
|
PointOnSegment ( double px, double py, double x1, double y1, double x2, double y2 ) : bool |
Check if a point lies on a given line segment.
|
|
SegmentIntersectionPoint ( |
Calculate the intersection point between two line segments (or null if they do not intersect).
|
|
SegmentIntersectionPoint ( double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4 ) : Vector2? |
Calculate the intersection point between two line segments (or null if they do not intersect).
|
public static IsPointInSegmentRange ( |
||
point | ||
start | ||
end | ||
return | bool |
public static IsPointInSegmentRange ( double px, double py, double x1, double y1, double x2, double y2 ) : bool | ||
px | double | |
py | double | |
x1 | double | |
y1 | double | |
x2 | double | |
y2 | double | |
return | bool |
public static LineIntersectionPoint ( |
||
start1 | ||
end1 | ||
start2 | ||
end2 | ||
return | Vector2? |
public static LineIntersectionPoint ( double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4 ) : Vector2? | ||
x1 | double | |
y1 | double | |
x2 | double | |
y2 | double | |
x3 | double | |
y3 | double | |
x4 | double | |
y4 | double | |
return | Vector2? |
public static LineToSegmentIntersectionPoint ( |
||
lineStart | ||
lineEnd | ||
segStart | ||
segEnd | ||
return | Vector2? |
public static LineToSegmentIntersectionPoint ( double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4 ) : Vector2? | ||
x1 | double | |
y1 | double | |
x2 | double | |
y2 | double | |
x3 | double | |
y3 | double | |
x4 | double | |
y4 | double | |
return | Vector2? |
public static PointOnLine ( |
||
point | ||
start | ||
end | ||
return | bool |
public static PointOnLine ( double px, double py, double x1, double y1, double x2, double y2 ) : bool | ||
px | double | |
py | double | |
x1 | double | |
y1 | double | |
x2 | double | |
y2 | double | |
return | bool |
public static PointOnSegment ( |
||
point | ||
start | ||
end | ||
return | bool |
public static PointOnSegment ( double px, double py, double x1, double y1, double x2, double y2 ) : bool | ||
px | double | |
py | double | |
x1 | double | |
y1 | double | |
x2 | double | |
y2 | double | |
return | bool |
public static SegmentIntersectionPoint ( |
||
start1 | ||
end1 | ||
start2 | ||
end2 | ||
return | Vector2? |
public static SegmentIntersectionPoint ( double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4 ) : Vector2? | ||
x1 | double | |
y1 | double | |
x2 | double | |
y2 | double | |
x3 | double | |
y3 | double | |
x4 | double | |
y4 | double | |
return | Vector2? |