Menu

#39 Make TFloatPoint a synonym of Types.TPointF

v2.0.0
pending
5
2012-09-08
2012-08-29
Mercury
No

...of course, on those versions of Delphi that have TPointF.

Discussion

  • Christian-W. Budde

    It was a design goal to keep TFloatPoint independent of the actual representation (being Single or Double). Thus a synonym would interfere with this flexibility.
    Eventually we can add helper functions or operator overloading to support easy conversion between these two types - where available.

     
  • Christian-W. Budde

    • milestone: --> v2.0.0
    • assigned_to: nobody --> cwbudde
     
  • Mercury

    Mercury - 2012-08-29

    Do as you wish. But please do.

     
  • Christian-W. Budde

    Color Curves Example demonstrating the new implicit TPointF -> TFloatPoint conversion

     
  • Christian-W. Budde

    • status: open --> pending
     
  • Christian-W. Budde

    Added implicit and explicit class operators for TPointF -> TFloatPoint conversion