Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


dot

Returns the dot product of two int values. Equivalent to multiplication.
Read time 3 minutesLast updated 6 days ago

Definition

dot(int, int)

Returns the dot product of two int values. Equivalent to multiplication.
public static int dot(int x, int y)

Parameters

The first value.

The second value.

Returns

Type

Description

intThe dot product of two values.

dot(int2, int2)

Returns the dot product of two int2 vectors.
public static int dot(int2 x, int2 y)

Parameters

The first vector.

The second vector.

Returns

Type

Description

intThe dot product of two vectors.

dot(int3, int3)

Returns the dot product of two int3 vectors.
public static int dot(int3 x, int3 y)

Parameters

The first vector.

The second vector.

Returns

Type

Description

intThe dot product of two vectors.

dot(int4, int4)

Returns the dot product of two int4 vectors.
public static int dot(int4 x, int4 y)

Parameters

The first vector.

The second vector.

Returns

Type

Description

intThe dot product of two vectors.

dot(uint, uint)

Returns the dot product of two uint values. Equivalent to multiplication.
public static uint dot(uint x, uint y)

Parameters

The first value.

The second value.

Returns

Type

Description

uintThe dot product of two values.

dot(uint2, uint2)

Returns the dot product of two uint2 vectors.
public static uint dot(uint2 x, uint2 y)

Parameters

The first vector.

The second vector.

Returns

Type

Description

uintThe dot product of two vectors.

dot(uint3, uint3)

Returns the dot product of two uint3 vectors.
public static uint dot(uint3 x, uint3 y)

Parameters

The first vector.

The second vector.

Returns

Type

Description

uintThe dot product of two vectors.

dot(uint4, uint4)

Returns the dot product of two uint4 vectors.
public static uint dot(uint4 x, uint4 y)

Parameters

The first vector.

The second vector.

Returns

Type

Description

uintThe dot product of two vectors.

dot(float, float)

Returns the dot product of two float values. Equivalent to multiplication.
public static float dot(float x, float y)

Parameters

The first value.

The second value.

Returns

Type

Description

floatThe dot product of two values.

dot(float2, float2)

Returns the dot product of two float2 vectors.
public static float dot(float2 x, float2 y)

Parameters

The first vector.

The second vector.

Returns

Type

Description

floatThe dot product of two vectors.

dot(float3, float3)

Returns the dot product of two float3 vectors.
public static float dot(float3 x, float3 y)

Parameters

The first vector.

The second vector.

Returns

Type

Description

floatThe dot product of two vectors.

dot(float4, float4)

Returns the dot product of two float4 vectors.
public static float dot(float4 x, float4 y)

Parameters

The first vector.

The second vector.

Returns

Type

Description

floatThe dot product of two vectors.

dot(double, double)

Returns the dot product of two double values. Equivalent to multiplication.
public static double dot(double x, double y)

Parameters

The first value.

The second value.

Returns

Type

Description

doubleThe dot product of two values.

dot(double2, double2)

Returns the dot product of two double2 vectors.
public static double dot(double2 x, double2 y)

Parameters

The first vector.

The second vector.

Returns

Type

Description

doubleThe dot product of two vectors.

dot(double3, double3)

Returns the dot product of two double3 vectors.
public static double dot(double3 x, double3 y)

Parameters

The first vector.

The second vector.

Returns

Type

Description

doubleThe dot product of two vectors.

dot(double4, double4)

Returns the dot product of two double4 vectors.
public static double dot(double4 x, double4 y)

Parameters

The first vector.

The second vector.

Returns

Type

Description

doubleThe dot product of two vectors.

dot(quaternion, quaternion)

Returns the dot product of two quaternions.
public static float dot(quaternion a, quaternion b)

Parameters

The first quaternion.

The second quaternion.

Returns

Type

Description

floatThe dot product of two quaternions.