Download Now

    Reference TCurve2

    Declared in Codebot.Geometry.pas on line 414

    TCurve2 is a series of points which approximate a 2d bezier curve
      TCurve2 = record
      public
        { Build a curve from a polygon computing distances between points }
        class operator Implicit(const Value: TPolygon): TCurve2;
        { Return the points of the curve as a polygon }
        class operator Explicit(const Value: TCurve2): TPolygon;
        { Find a heading normal at a distance along the curve }
        function FindNormal(Dist: Float): TVec2;
        { Find a point at a distance along the curve }
        function FindPoint(Dist: Float): TVec2;
        { Total distance over the curve }
        Distance: Float;
        { Distances between each point }
        D: TVec1Array;
        { Approximated points over the curve }
        P: TVec2Array;
      end;

    See also

    Float in Codebot.System.pas