文档

Unity Engine

Unity Engine

Dot

Calculates the dot product of two vectors.
阅读时间1 分钟最后更新于 1 个月前

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
.