System.Math.Vectors.TPoint3D.CrossProduct

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CrossProduct(const APoint: TPoint3D): TPoint3D;

C++

TPoint3D __fastcall CrossProduct(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 cross product between two TPoint3D objects.

This function returns a TPoint3D object. The cross product between two TPoint3D objects is defined in the following example:

  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);

See Also

Code Examples