NiceTouch v2.1
MoreMountains.Tools.MMVector2Extensions Class Reference

Vector2 extensions More...

Static Public Member Functions

static Vector2 MMRotate (this Vector2 vector, float angleInDegrees)
 Rotates a vector2 by angleInDegrees More...
 
static Vector2 MMSetX (this Vector2 vector, float newValue)
 Sets the X part of a Vector2 More...
 
static Vector2 MMSetY (this Vector2 vector, float newValue)
 Sets the Y part of a Vector2 More...
 

Detailed Description

Vector2 extensions

Member Function Documentation

◆ MMRotate()

static Vector2 MoreMountains.Tools.MMVector2Extensions.MMRotate ( this Vector2  vector,
float  angleInDegrees 
)
static

Rotates a vector2 by angleInDegrees

Parameters
vector
angleInDegrees
Returns

◆ MMSetX()

static Vector2 MoreMountains.Tools.MMVector2Extensions.MMSetX ( this Vector2  vector,
float  newValue 
)
static

Sets the X part of a Vector2

Parameters
vector
newValue
Returns

◆ MMSetY()

static Vector2 MoreMountains.Tools.MMVector2Extensions.MMSetY ( this Vector2  vector,
float  newValue 
)
static

Sets the Y part of a Vector2

Parameters
vector
newValue
Returns

The documentation for this class was generated from the following file: