Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Scale

Multiplies two vectors component-wise.
Read time 1 minuteLast updated 5 days ago

Definition

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

Scale(Vector3Int, Vector3Int)

Multiplies two vectors component-wise.
public static Vector3Int Scale(Vector3Int a, Vector3Int b)

Parameters

The first vector to multiply.

The second vector to multiply.

Returns

Type

Description

Vector3IntA component of
a
multiplied by the same component of
b
.

Remarks

Every component in the result is a component of
a
multiplied by the same component of
b
.

Scale(Vector3Int, Vector3Int)

Multiplies two vectors component-wise.
public static Vector3Int Scale(in Vector3Int a, in Vector3Int b)

Parameters

The first vector to multiply.

The second vector to multiply.

Returns

Type

Description

Vector3IntA component of
a
multiplied by the same component of
b
.

Remarks

Every component in the result is a component of
a
multiplied by the same component of
b
.

Scale(Vector3Int)

Multiplies every component of this vector by the same component of
scale
.
public void Scale(Vector3Int scale)

Parameters

The vector to multiply by.

Scale(Vector3Int)

Multiplies every component of this vector by the same component of
scale
.
public void Scale(in Vector3Int scale)

Parameters

The vector to multiply by.