System.Math.Vectors.TPoint3D
Delphi
TPoint3D = record
C++
struct DECLSPEC_DRECORD TPoint3D
{
public:
typedef System::StaticArray<float, 3> TPoint3DArray;
public:
static TPoint3D __fastcall Create(const float AX, const float AY, const float AZ)/* overload */;
static TPoint3D __fastcall Create(const TVector3DType &P)/* overload */;
static TPoint3D __fastcall Create(const System::Types::TPointF &APoint, const float AZ = 0.000000E+00f)/* overload */;
static TPoint3D __fastcall _op_Addition(const TPoint3D &APoint1, const TPoint3D &APoint2);
static TPoint3D __fastcall _op_Subtraction(const TPoint3D &APoint1, const TPoint3D &APoint2);
static bool __fastcall _op_Equality(const TPoint3D &APoint1, const TPoint3D &APoint2);
static bool __fastcall _op_Inequality(const TPoint3D &APoint1, const TPoint3D &APoint2);
static TPoint3D __fastcall _op_UnaryNegation(const TPoint3D &APoint);
static TPoint3D __fastcall _op_Multiply(const TPoint3D &APoint1, const TPoint3D &APoint2);
static TPoint3D __fastcall _op_Multiply(const TPoint3D &APoint, const float AFactor);
static TPoint3D __fastcall _op_Multiply(const float AFactor, const TPoint3D &APoint);
static TPoint3D __fastcall _op_Division(const TPoint3D &APoint, const float AFactor);
static TPoint3D __fastcall Zero();
void __fastcall Offset(const TPoint3D &ADelta)/* overload */;
void __fastcall Offset(const float ADeltaX, const float ADeltaY, const float ADeltaZ)/* overload */;
TPoint3D __fastcall CrossProduct(const TPoint3D &APoint);
float __fastcall DotProduct(const TPoint3D &APoint);
bool __fastcall EqualsTo(const TPoint3D &APoint, const float Epsilon = 0.000000E+00f);
float __fastcall Length();
TPoint3D __fastcall Normalize();
float __fastcall Distance(const TPoint3D &APoint);
TPoint3D __fastcall Rotate(const TPoint3D &AAxis, const float AAngle);
TPoint3D __fastcall Reflect(const TPoint3D &APoint);
TPoint3D __fastcall MidPoint(const TPoint3D &APoint);
float __fastcall AngleCosine(const TPoint3D &APoint);
friend TPoint3D operator +(const TPoint3D &APoint1, const TPoint3D &APoint2) { return TPoint3D::_op_Addition(APoint1, APoint2); }
friend TPoint3D operator -(const TPoint3D &APoint1, const TPoint3D &APoint2) { return TPoint3D::_op_Subtraction(APoint1, APoint2); }
friend bool operator ==(const TPoint3D &APoint1, const TPoint3D &APoint2) { return TPoint3D::_op_Equality(APoint1, APoint2); }
friend bool operator !=(const TPoint3D &APoint1, const TPoint3D &APoint2) { return TPoint3D::_op_Inequality(APoint1, APoint2); }
TPoint3D operator -() { return TPoint3D::_op_UnaryNegation(*this); }
friend TPoint3D operator *(const TPoint3D &APoint1, const TPoint3D &APoint2) { return TPoint3D::_op_Multiply(APoint1, APoint2); }
friend TPoint3D operator *(const TPoint3D &APoint, const float AFactor) { return TPoint3D::_op_Multiply(APoint, AFactor); }
friend TPoint3D operator *(const float AFactor, const TPoint3D &APoint) { return TPoint3D::_op_Multiply(AFactor, APoint); }
friend TPoint3D operator /(const TPoint3D &APoint, const float AFactor) { return TPoint3D::_op_Division(APoint, AFactor); }
public:
union
{
struct
{
float X;
float Y;
float Z;
};
struct
{
TPoint3DArray V;
};
};
};
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
record struct |
public | System.Math.Vectors.pas System.Math.Vectors.hpp |
System.Math.Vectors | System.Math.Vectors |
説明
3D 空間内の 1 つの点を表します。
TPoint3D は、3D 空間内の 1 つの点を X
軸、Y
軸、Z
軸を使って表します。