기술 자료

Unity Engine

Unity Engine

Dot

Calculates the dot product of two vectors.
읽는 시간 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
.