C# Class Evbpc.Framework.Physics.Line

ファイルを表示 Open project: EBrown8534/Framework

Public Methods

Method Description
Intersect ( Line l1, Line l2 ) : PointF?
IntersectForever ( Line l1, Line l2 ) : PointF?
Line ( PointF start, PointF end ) : Evbpc.Framework.Drawing
RectContainsPoint ( PointF pt ) : bool

Determines if the Bounds contains the specified PointF.

If it is already know that the PointF fits on the Line at some location, then this is an inexpensive operation to see if the PointF is within the current Line segment.

WithinX ( PointF pt ) : bool
WithinY ( PointF pt ) : bool

Method Details

Intersect() public static method

public static Intersect ( Line l1, Line l2 ) : PointF?
l1 Line
l2 Line
return PointF?

IntersectForever() public static method

public static IntersectForever ( Line l1, Line l2 ) : PointF?
l1 Line
l2 Line
return PointF?

Line() public method

public Line ( PointF start, PointF end ) : Evbpc.Framework.Drawing
start Evbpc.Framework.Drawing.PointF
end Evbpc.Framework.Drawing.PointF
return Evbpc.Framework.Drawing

RectContainsPoint() public method

Determines if the Bounds contains the specified PointF.
If it is already know that the PointF fits on the Line at some location, then this is an inexpensive operation to see if the PointF is within the current Line segment.
public RectContainsPoint ( PointF pt ) : bool
pt Evbpc.Framework.Drawing.PointF The to test.
return bool

WithinX() public method

public WithinX ( PointF pt ) : bool
pt Evbpc.Framework.Drawing.PointF
return bool

WithinY() public method

public WithinY ( PointF pt ) : bool
pt Evbpc.Framework.Drawing.PointF
return bool