System.Math.Vectors.TPoint3D.DotProduct
Delphi
function DotProduct(const APoint: TPoint3D): Single; inline;
C++
float __fastcall DotProduct(const TPoint3D &APoint);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Math.Vectors.pas System.Math.Vectors.hpp |
System.Math.Vectors | TPoint3D |
Description
Calculates the dot product between two TPoint3D objects.
This function returns a Single value. The dot product between two TPoint3D objects is defined in the following example:
aReturnValue := (aPoint1.X * aPoint2.X) + (aPoint1.Y * aPoint2.Y) + (aPoint1.Z + aPoint2.Z);