System.Math.Vectors.TPoint3D.CrossProduct

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function CrossProduct(const APoint: TPoint3D): TPoint3D;

C++

TPoint3D __fastcall CrossProduct(const TPoint3D &APoint);

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.Math.Vectors.pas
System.Math.Vectors.hpp
System.Math.Vectors TPoint3D

Description

Calcule le produit croisé de deux objets TPoint3D.

Cette fonction renvoie un objet TPoint3D. Le produit croisé de deux objets TPoint3D est défini dans l'exemple suivant :

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

Voir aussi

Exemples de code