Record TPointFHelper
Helper for TPointF structure providing additional functionality for point manipulation
Overview
Hierarchy
Fields
Properties
🗎 BGRABitmapTypes
Declaration
type TPointFHelper = record helper for TPointF
Methods
Description
Methods
 |
function Ceiling: TPoint; |
Rounds the coordinates of the point to the nearest integer towards positive infinity
|
 |
function Floor: TPoint; |
Rounds the coordinates of the point to the nearest integer towards negative infinity
|
 |
function IsEmpty: boolean; |
Determines if the point is empty (has special coordinates EmptyPointF)
|
 |
function Length: Single; |
Calculates the length (magnitude) of the point from the origin
|
 |
function Round: TPoint; |
Rounds the coordinates of the point to the nearest integer
|
 |
function Truncate: TPoint; |
Truncates the coordinates of the point, discarding fractional part
|
 |
procedure Normalize; |
Normalizes the point (modifies it to a unit length)
|
 |
procedure Offset(dx, dy: longint); overload; |
Offsets the point by specified distances in the X (dx) and Y (dy) directions (integer values)
|
 |
procedure Offset(dx, dy: single); overload; |
Offsets the point by specified distances in the X (dx) and Y (dy) directions (single values)
|
 |
procedure Scale(AScale: single); |
Scales the point as a vector from the origin) by a specified factor
|