wo N der Einheitsvektor und senkrecht zu A und B ist.
Wir wissen für gewöhnlich den Winkel zwischen A und B nicht, aber wieder gibt es einen anderen Weg, auch das Kreuzprodukt zu berechnen.
www.conitec.netwhere N is the unit vector perpendicular to A and B.
We usually don't know the angle between A and B, but again there is another way to calculate the cross product:
www.conitec.netKreuzprodukt
Das Kreuzprodukt zweier Vektoren ist ein Vektor, der senkrecht zu beiden steht.
Er wird definiert als:
www.conitec.netCross product
The cross product of two vectors is a vector that is perpendicular to both.
It is defined as:
www.conitec.netA x B = [ Ay * Bz - Az * By, Az * Bx - Ax * Bz, Ax * Cy - By * Bz ]
In Shadern wird das Kreuzprodukt normalerweise zum Finden des Vektoren der dritten Achse eines Koordinatensystems benutzt, wenn die beiden anderen Vektoren bekannt sind.
Die Reihenfolge der zu multiplizierenden und abzuziehenden Komponenten läßt sich durch die Regel "xyzzy" merken (x Komponente des Ergebnisses = Ay * Bz - Az * By).
www.conitec.netA x B = [ Ay * Bz - Az * By, Az * Bx - Ax * Bz, Ax * Cy - By * Bz ]
In shaders, the cross product is usually used to find the third axis vector of a coordinate system when the two other vectors are known.
The order of components to multiply and subtract can be memorized by the "xyzzy" rule (x component of the result = Ay * Bz - Az * By).
www.conitec.netВы хотите добавить слова, фразы или переводы?
Пришлите нам новую статью.