C# Class Gu.Wpf.Geometry.Line

Show file Open project: JohanLarsson/Gu.Wpf.Geometry Class Usage Examples

Public Properties

Property Type Description
EndPoint Point
StartPoint Point

Private Properties

Property Type Description
ClosestIntersection Point?
DistanceTo double
DistanceToPointOnLine double
Flip Line
IntersectWith Point?
IntersectionPoint Point?
IsPointOnLine bool
Offset Line
Parse Line
Perp double
PerpendicularLineTo Line?
Project Point
RotateAroundStartPoint Line
TrimOrExtendEndWith Line?
TrimOrExtendStartWith Line?
TrimTo Point?

Public Methods

Method Description
Line ( Point startPoint, Point endPoint ) : System
ToString ( ) : string
ToString ( string format ) : string

Private Methods

Method Description
ClosestIntersection ( Rect rectangle ) : Point?
DistanceTo ( Point p ) : double
DistanceToPointOnLine ( Point p ) : double
Flip ( ) : Line
IntersectWith ( Line other, bool mustBeBetweenStartAndEnd ) : Point?
IntersectionPoint ( Line l1, Line l2, bool mustBeBetweenStartAndEnd ) : Point?
IsPointOnLine ( Point p ) : bool
Offset ( double distance ) : Line
Parse ( string text ) : Line
Perp ( System.Windows.Vector u, System.Windows.Vector v ) : double
PerpendicularLineTo ( Point p ) : Line?
Project ( Point p ) : Point
RotateAroundStartPoint ( double angleInDegrees ) : Line
TrimOrExtendEndWith ( Line other ) : Line?
TrimOrExtendStartWith ( Line other ) : Line?
TrimTo ( Point p ) : Point?

Method Details

Line() public method

public Line ( Point startPoint, Point endPoint ) : System
startPoint Point
endPoint Point
return System

ToString() public method

public ToString ( ) : string
return string

ToString() public method

public ToString ( string format ) : string
format string
return string

Property Details

EndPoint public property

public Point EndPoint
return Point

StartPoint public property

public Point StartPoint
return Point