ドキュメント

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
.