FMX.InertialMovement.TPointD
Delphi
TPointD = record
C++
struct DECLSPEC_DRECORD TPointD
{
public:
double X;
double Y;
__fastcall TPointD(const TPointD &P)/* overload */;
__fastcall TPointD(const System::Types::TPointF &P)/* overload */;
__fastcall TPointD(const System::Types::TPoint &P)/* overload */;
__fastcall TPointD(const double X, const double Y)/* overload */;
void __fastcall SetLocation(const TPointD &P);
static bool __fastcall _op_Equality(const TPointD &Lhs, const TPointD &Rhs);
static bool __fastcall _op_Inequality(const TPointD &Lhs, const TPointD &Rhs);
static TPointD __fastcall _op_Addition(const TPointD &Lhs, const TPointD &Rhs);
static TPointD __fastcall _op_Subtraction(const TPointD &Lhs, const TPointD &Rhs);
static TPointD __fastcall _op_Implicit(const System::Types::TPointF &APointF);
double __fastcall Distance(const TPointD &P2);
double __fastcall Abs();
void __fastcall Offset(const double DX, const double DY);
TPointD() {}
friend bool operator ==(const TPointD &Lhs, const TPointD &Rhs) { return TPointD::_op_Equality(Lhs, Rhs); }
friend bool operator !=(const TPointD &Lhs, const TPointD &Rhs) { return TPointD::_op_Inequality(Lhs, Rhs); }
friend TPointD operator +(const TPointD &Lhs, const TPointD &Rhs) { return TPointD::_op_Addition(Lhs, Rhs); }
friend TPointD operator -(const TPointD &Lhs, const TPointD &Rhs) { return TPointD::_op_Subtraction(Lhs, Rhs); }
TPointD& operator =(const System::Types::TPointF &APointF) { *this = TPointD::_op_Implicit(APointF); return *this; }
};
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
record struct |
public | FMX.InertialMovement.pas FMX.InertialMovement.hpp |
FMX.InertialMovement | FMX.InertialMovement |
説明
点の座標を論理単位で定義します。
TPointD 型では、点位置の X 座標と Y 座標(Double 浮動小数点型)を定義しています。コンテナの左上隅が座標の原点になっています。X と Y はそれぞれ、点の水平座標と垂直座標を指定します。通常、X 値と Y 値は、密度に依存しないピクセル数(DP)(論理単位)を表します。