文档

Unity Engine


User Manual

Script Reference

Unity Engine


Min

Creates a vector that is made from the smallest components of two vectors.
阅读时间1 分钟最后更新于 23 天前

Definition

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

Min(Vector2Int, Vector2Int)

Creates a vector that is made from the smallest components of two vectors.
public static Vector2Int Min(Vector2Int lhs, Vector2Int rhs)

Parameters

The first vector to compare.

The second vector to compare.

Returns

Type

Description

Vector2IntA vector that is made from the smallest components of two vectors.

Remarks

Additional Resources: Vector2Int.Max function.

Min(Vector2Int, Vector2Int)

Creates a vector that is made from the smallest components of two vectors.
public static Vector2Int Min(in Vector2Int lhs, in Vector2Int rhs)

Parameters

The first vector to compare.

The second vector to compare.

Returns

Type

Description

Vector2IntA vector that is made from the smallest components of two vectors.

Remarks

Additional Resources: Vector2Int.Max function.