C# Class UnityEngine.Vector2

Mostra file Open project: jbruening/UnEngine Class Usage Examples

Public Properties

Property Type Description
x float
y float

Public Methods

Method Description
Dot ( Vector2 a, Vector2 b ) : float
Lerp ( Vector2 from, Vector2 to, float t ) : Vector2
MoveTowards ( Vector2 current, Vector2 target, float maxDistanceDelta ) : Vector2
Vector2 ( float x, float y ) : System
operator ( ) : Vector2

Private Methods

Method Description
Vector2 ( ) : System

Method Details

Dot() public static method

public static Dot ( Vector2 a, Vector2 b ) : float
a Vector2
b Vector2
return float

Lerp() public static method

public static Lerp ( Vector2 from, Vector2 to, float t ) : Vector2
from Vector2
to Vector2
t float
return Vector2

MoveTowards() public static method

public static MoveTowards ( Vector2 current, Vector2 target, float maxDistanceDelta ) : Vector2
current Vector2
target Vector2
maxDistanceDelta float
return Vector2

Vector2() public method

public Vector2 ( float x, float y ) : System
x float
y float
return System

operator() public static method

public static operator ( ) : Vector2
return Vector2

Property Details

x public_oe property

public float x
return float

y public_oe property

public float y
return float