C# 클래스 Phosphaze.Framework.Maths.Geometry.LinearUtils

파일 보기 프로젝트 열기: ArtemisEngine/Artemis-Engine

공개 메소드들

메소드 설명
IsPointInSegmentRange ( Vector2 point, Vector2 start, Vector2 end ) : 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.

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 ( Vector2 start1, Vector2 end1, Vector2 start2, Vector2 end2 ) : Vector2?

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 ( Vector2 lineStart, Vector2 lineEnd, Vector2 segStart, Vector2 segEnd ) : Vector2?

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 ( Vector2 point, Vector2 start, Vector2 end ) : bool

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 ( Vector2 point, Vector2 start, Vector2 end ) : bool

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 ( Vector2 start1, Vector2 end1, Vector2 start2, Vector2 end2 ) : Vector2?

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).

메소드 상세

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.
public static IsPointInSegmentRange ( Vector2 point, Vector2 start, Vector2 end ) : bool
point Microsoft.Xna.Framework.Vector2
start Microsoft.Xna.Framework.Vector2
end Microsoft.Xna.Framework.Vector2
리턴 bool

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.
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
리턴 bool

LineIntersectionPoint() 공개 정적인 메소드

Calculate the intersection point between two lines (or null if they are parallel).
public static LineIntersectionPoint ( Vector2 start1, Vector2 end1, Vector2 start2, Vector2 end2 ) : Vector2?
start1 Microsoft.Xna.Framework.Vector2
end1 Microsoft.Xna.Framework.Vector2
start2 Microsoft.Xna.Framework.Vector2
end2 Microsoft.Xna.Framework.Vector2
리턴 Vector2?

LineIntersectionPoint() 공개 정적인 메소드

Calculate the intersection point between two lines (or null if they are parallel).
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
리턴 Vector2?

LineToSegmentIntersectionPoint() 공개 정적인 메소드

Calculate the intersection point between a line and a line segment (or null if they do not intersect).
public static LineToSegmentIntersectionPoint ( Vector2 lineStart, Vector2 lineEnd, Vector2 segStart, Vector2 segEnd ) : Vector2?
lineStart Microsoft.Xna.Framework.Vector2
lineEnd Microsoft.Xna.Framework.Vector2
segStart Microsoft.Xna.Framework.Vector2
segEnd Microsoft.Xna.Framework.Vector2
리턴 Vector2?

LineToSegmentIntersectionPoint() 공개 정적인 메소드

Calculate the intersection point between a line and a line segment (or null if they do not intersect).
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
리턴 Vector2?

PointOnLine() 공개 정적인 메소드

Check if a point lies on a given line.
public static PointOnLine ( Vector2 point, Vector2 start, Vector2 end ) : bool
point Microsoft.Xna.Framework.Vector2
start Microsoft.Xna.Framework.Vector2
end Microsoft.Xna.Framework.Vector2
리턴 bool

PointOnLine() 공개 정적인 메소드

Check if a point lies on a given line.
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
리턴 bool

PointOnSegment() 공개 정적인 메소드

Check if a point lies on a given line segment.
public static PointOnSegment ( Vector2 point, Vector2 start, Vector2 end ) : bool
point Microsoft.Xna.Framework.Vector2
start Microsoft.Xna.Framework.Vector2
end Microsoft.Xna.Framework.Vector2
리턴 bool

PointOnSegment() 공개 정적인 메소드

Check if a point lies on a given line segment.
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
리턴 bool

SegmentIntersectionPoint() 공개 정적인 메소드

Calculate the intersection point between two line segments (or null if they do not intersect).
public static SegmentIntersectionPoint ( Vector2 start1, Vector2 end1, Vector2 start2, Vector2 end2 ) : Vector2?
start1 Microsoft.Xna.Framework.Vector2
end1 Microsoft.Xna.Framework.Vector2
start2 Microsoft.Xna.Framework.Vector2
end2 Microsoft.Xna.Framework.Vector2
리턴 Vector2?

SegmentIntersectionPoint() 공개 정적인 메소드

Calculate the intersection point between two line segments (or null if they do not intersect).
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
리턴 Vector2?