C# 클래스 LineSegment2D, UnityUtils

파일 보기 프로젝트 열기: mortennobel/UnityUtils 1 사용 예제들

공개 메소드들

메소드 설명
Direction ( ) : Vector2D,
Length ( ) : double
LineIntersect ( LineSegment2D, l2, Vector2D, &res ) : bool
LineIntersect ( double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, Vector2D, &res ) : bool
LineSegment2D ( Vector2D, first_, Vector2D, second_ ) : System.Collections
MinimumDistance ( Vector2D, point ) : double
MinimumDistance ( Vector2D, point, double &t ) : double
RayIntersect ( Ray2DD, l2, Vector2D, &res ) : bool
doesIntersect ( LineSegment2D, ln1, LineSegment2D, ln2 ) : bool
doesIntersect ( double l1x1, double l1y1, double l1x2, double l1y2, double l2x1, double l2y1, double l2x2, double l2y2 ) : bool
getIntersection ( LineSegment2D, line, double x1, double y1, double x2, double y2, Vector2D, &res ) : bool

비공개 메소드들

메소드 설명
RayIntersect ( double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, Vector2D, &res ) : bool

메소드 상세

Direction() 공개 메소드

public Direction ( ) : Vector2D,
리턴 Vector2D,

Length() 공개 메소드

public Length ( ) : double
리턴 double

LineIntersect() 공개 메소드

public LineIntersect ( LineSegment2D, l2, Vector2D, &res ) : bool
l2 LineSegment2D,
res Vector2D,
리턴 bool

LineIntersect() 공개 정적인 메소드

public static LineIntersect ( double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, Vector2D, &res ) : bool
x1 double
y1 double
x2 double
y2 double
x3 double
y3 double
x4 double
y4 double
res Vector2D,
리턴 bool

LineSegment2D() 공개 메소드

public LineSegment2D ( Vector2D, first_, Vector2D, second_ ) : System.Collections
first_ Vector2D,
second_ Vector2D,
리턴 System.Collections

MinimumDistance() 공개 메소드

public MinimumDistance ( Vector2D, point ) : double
point Vector2D,
리턴 double

MinimumDistance() 공개 메소드

public MinimumDistance ( Vector2D, point, double &t ) : double
point Vector2D,
t double
리턴 double

RayIntersect() 공개 메소드

public RayIntersect ( Ray2DD, l2, Vector2D, &res ) : bool
l2 Ray2DD,
res Vector2D,
리턴 bool

doesIntersect() 공개 정적인 메소드

public static doesIntersect ( LineSegment2D, ln1, LineSegment2D, ln2 ) : bool
ln1 LineSegment2D,
ln2 LineSegment2D,
리턴 bool

doesIntersect() 공개 정적인 메소드

public static doesIntersect ( double l1x1, double l1y1, double l1x2, double l1y2, double l2x1, double l2y1, double l2x2, double l2y2 ) : bool
l1x1 double
l1y1 double
l1x2 double
l1y2 double
l2x1 double
l2y1 double
l2x2 double
l2y2 double
리턴 bool

getIntersection() 공개 정적인 메소드

public static getIntersection ( LineSegment2D, line, double x1, double y1, double x2, double y2, Vector2D, &res ) : bool
line LineSegment2D,
x1 double
y1 double
x2 double
y2 double
res Vector2D,
리턴 bool