Documentation

Unity Engine

Unity Engine

Dot

Calculates the dot product of two vectors.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

Dot(Vector4, Vector4)

Calculates the dot product of two vectors.
public static float Dot(Vector4 a, Vector4 b)

Parameters

The first vector.

The second vector.

Returns

Type

Description

floatThe dot product of
a
and
b
.

Dot(Vector4, Vector4)

Calculates the dot product of two vectors.
public static float Dot(in Vector4 a, in Vector4 b)

Parameters

The first vector.

The second vector.

Returns

Type

Description

floatThe dot product of
a
and
b
.