System.Math.Vectors.TPoint3D.DotProduct

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function DotProduct(const APoint: TPoint3D): Single; inline;

C++

float __fastcall DotProduct(const TPoint3D &APoint);

プロパティ

種類 可視性 ソース ユニット
function public
System.Math.Vectors.pas
System.Math.Vectors.hpp
System.Math.Vectors TPoint3D

説明

2 つの TPoint3D オブジェクト間のドット プロダクトを計算します。

この関数は、Single 値を返します。 2 つの TPoint3D オブジェクト間のドット プロダクトは、次の例で定義されています:

 aReturnValue := (aPoint1.X * aPoint2.X) + (aPoint1.Y * aPoint2.Y) + (aPoint1.Z + aPoint2.Z);

関連項目

コード サンプル