TPointF¶
Declaration¶
Source position: types.pp line 160
type
TPointF = packed record
x: Single;
y: Single;
function Add(const apt: TPoint) : TPointF;
function Add(const apt: TPointF) : TPointF;
function Distance : Single;
function DotProduct : Single;
function IsZero : Boolean;
function Subtract(const apt: TPointF) : TPointF;
function Subtract(const apt: TPoint) : TPointF;
procedure SetLocation(const apt: TPointF);
procedure SetLocation(const apt: TPoint);
procedure SetLocation(ax: Single; ay: Single);
procedure Offset(const apt: TPointF);
procedure Offset(const apt: TPoint);
procedure Offset(dx: Single; dy: Single);
function EqualsTo(const apt: TPointF; const aEpsilon: Single) : Boolean; overload;
function EqualsTo(const apt: TPointF) : Boolean; overload;
function Scale : TPointF;
function Ceiling : TPoint;
function Truncate : TPoint;
function Floor : TPoint;
function Round : TPoint;
function &Length : Single;
function Rotate : TPointF;
function Reflect : TPointF;
function MidPoint : TPointF;
class function PointInCircle(const pt: TPointF; const center: TPointF;
radius: single) : Boolean;
class function PointInCircle(const pt: TPointF; const center: TPointF;
radius: Integer) : Boolean;
class function Zero : TPointF;
function Angle : Single;
function AngleCosine : single;
function CrossProduct : Single;
function Normalize : TPointF;
function ToString(aSize: Byte; aDecimals: Byte) : RTLString; overload;
function ToString : RTLString; overload;
class function Create(const ax: Single; const ay: Single) : TPointF; overload;
class function Create(const apt: TPoint) : TPointF; overload;
class operator =(const apt1: TPointF; const apt2: TPointF) : Boolean;
class operator <>(const apt1: TPointF; const apt2: TPointF) : Boolean;
class operator +(const apt1: TPointF; const apt2: TPointF) : TPointF;
class operator -(const apt1: TPointF; const apt2: TPointF) : TPointF;
class operator -(const apt1: TPointF) : TPointF;
class operator *(const apt1: TPointF; const apt2: TPointF) : TPointF;
class operator *(const apt1: TPointF; afactor: single) : TPointF;
class operator *(afactor: single; const apt1: TPointF) : TPointF;
class operator /(const apt1: TPointF; afactor: single) : TPointF;
class operator :=(const apt: TPoint) : TPointF;
class operator **(const apt1: TPointF; const apt2: TPointF) : Single;
end;