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