文档

Unity Engine


User Manual

Script Reference

Unity Engine


Project

Projects a vector onto another vector.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Project(Vector4, Vector4)

Projects a vector onto another vector.
public static Vector4 Project(Vector4 a, Vector4 b)

Parameters

The vector to project.

The vector to be projected onto.

Returns

Type

Description

Vector4
a
projected onto
b
.

Project(Vector4, Vector4)

Projects a vector onto another vector.
public static Vector4 Project(in Vector4 a, in Vector4 b)

Parameters

The vector to project.

The vector to be projected onto.

Returns

Type

Description

Vector4
a
projected onto
b
.