Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Project

Projects a vector onto another vector.
Read time 1 minuteLast updated 5 days ago

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
.