System.Math.Vectors.TPoint3D.CrossProduct
Delphi
function CrossProduct(const APoint: TPoint3D): TPoint3D;
C++
TPoint3D __fastcall CrossProduct(const TPoint3D &APoint);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Math.Vectors.pas System.Math.Vectors.hpp |
System.Math.Vectors | TPoint3D |
説明
2 つの TPoint3D オブジェクト間のクロス プロダクトを計算します。
この関数は、TPoint3D オブジェクトを返します。 2 つの TPoint3D オブジェクト間のクロス プロダクトは、次の例で定義されています:
pointReturnValue.X:= (aPoint1.Y * aPoint1.Z) - (aPoint1.Z * aPoint2.Y);
pointReturnValue.Y:= (aPoint1.Z * aPoint1.X) - (aPoint1.X * aPoint2.Z);
pointReturnValue.Z:= (aPoint1.X * aPoint1.Y) - (aPoint1.Y * aPoint2.X);