C# Class UnityCommonLibrary.Utility.VectorUtility

Mostra file Open project: thebeardphantom/UnityCommonLibrary Class Usage Examples

Public Methods

Method Description
Round ( Vector2 vec ) : Vector2
Round ( Vector3 vec ) : Vector3
RoundTo ( Vector2 vec, float nearest ) : Vector3
RoundTo ( Vector3 vec, float nearest ) : Vector3
SetXYZ ( this v3, float x = null, float y = null, float z = null ) : void
SmoothStep ( Vector2 from, Vector2 to, float t ) : Vector2

Method Details

Round() public static method

public static Round ( Vector2 vec ) : Vector2
vec UnityEngine.Vector2
return UnityEngine.Vector2

Round() public static method

public static Round ( Vector3 vec ) : Vector3
vec UnityEngine.Vector3
return UnityEngine.Vector3

RoundTo() public static method

public static RoundTo ( Vector2 vec, float nearest ) : Vector3
vec UnityEngine.Vector2
nearest float
return UnityEngine.Vector3

RoundTo() public static method

public static RoundTo ( Vector3 vec, float nearest ) : Vector3
vec UnityEngine.Vector3
nearest float
return UnityEngine.Vector3

SetXYZ() public static method

public static SetXYZ ( this v3, float x = null, float y = null, float z = null ) : void
v3 this
x float
y float
z float
return void

SmoothStep() public static method

public static SmoothStep ( Vector2 from, Vector2 to, float t ) : Vector2
from UnityEngine.Vector2
to UnityEngine.Vector2
t float
return UnityEngine.Vector2