Class Vector2Round
Rounds each component of a 2D vector.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Math/Vector 2")]
[UnitTitle("Round")]
public sealed class Vector2Round : Round<Vector2, Vector2>, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Methods
AwayFromZero(Vector2)
Declaration
protected override Vector2 AwayFromZero(Vector2 input)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | input |
Returns
Type | Description |
---|---|
Vector2 |
Overrides
Unity.VisualScripting.Round<UnityEngine.Vector2, UnityEngine.Vector2>.AwayFromZero(UnityEngine.Vector2)
Ceiling(Vector2)
Declaration
protected override Vector2 Ceiling(Vector2 input)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | input |
Returns
Type | Description |
---|---|
Vector2 |
Overrides
Unity.VisualScripting.Round<UnityEngine.Vector2, UnityEngine.Vector2>.Ceiling(UnityEngine.Vector2)
Floor(Vector2)
Declaration
protected override Vector2 Floor(Vector2 input)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | input |
Returns
Type | Description |
---|---|
Vector2 |
Overrides
Unity.VisualScripting.Round<UnityEngine.Vector2, UnityEngine.Vector2>.Floor(UnityEngine.Vector2)