Reference TLine2
Declared in Codebot.Geometry.pas on line 381
TLine2 represents a 2d line
TLine2 = record
public
{ Scale both points of the line }
class operator Multiply(const A: TLine2; B: Float): TLine2; overload;
{ Slope of the line }
function Slope: TSlope2;
{ Normal heading of the line }
function Normal: TVec2;
{ Find a point at a distance along the line }
function FindPoint(Dist: Float): TVec2;
{ Total distance along the line }
function Distance: Float;
{ Returns true if two lines intersect }
function Intersects(const Line: TLine2): Boolean;
P0: TVec2;
P1: TVec2;
P: array[0..1] of TVec2;
end;See also
Float in Codebot.System.pas