C# Class LineSegment2D, UnityUtils

Afficher le fichier Open project: mortennobel/UnityUtils Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
RayIntersect ( double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, Vector2D, &res ) : bool

Method Details

Direction() public méthode

public Direction ( ) : Vector2D,
Résultat Vector2D,

Length() public méthode

public Length ( ) : double
Résultat double

LineIntersect() public méthode

public LineIntersect ( LineSegment2D, l2, Vector2D, &res ) : bool
l2 LineSegment2D,
res Vector2D,
Résultat bool

LineIntersect() public static méthode

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,
Résultat bool

LineSegment2D() public méthode

public LineSegment2D ( Vector2D, first_, Vector2D, second_ ) : System.Collections
first_ Vector2D,
second_ Vector2D,
Résultat System.Collections

MinimumDistance() public méthode

public MinimumDistance ( Vector2D, point ) : double
point Vector2D,
Résultat double

MinimumDistance() public méthode

public MinimumDistance ( Vector2D, point, double &t ) : double
point Vector2D,
t double
Résultat double

RayIntersect() public méthode

public RayIntersect ( Ray2DD, l2, Vector2D, &res ) : bool
l2 Ray2DD,
res Vector2D,
Résultat bool

doesIntersect() public static méthode

public static doesIntersect ( LineSegment2D, ln1, LineSegment2D, ln2 ) : bool
ln1 LineSegment2D,
ln2 LineSegment2D,
Résultat bool

doesIntersect() public static méthode

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
Résultat bool

getIntersection() public static méthode

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,
Résultat bool