Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

math.cross

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static float3 cross(float3 x, float3 y);

Parameters

Parameter Description
x First vector to use in cross product.
y Second vector to use in cross product.

Returns

float3 The cross product of x and y.

Description

Returns the cross product of two float3 vectors.


Declaration

public static double3 cross(double3 x, double3 y);

Parameters

Parameter Description
x First vector to use in cross product.
y Second vector to use in cross product.

Returns

double3 The cross product of x and y.

Description

Returns the cross product of two double3 vectors.