C# Class SFML.Graphics.Glsl.Vec2

Show file Open project: SFML/SFML.Net Class Usage Examples

Public Properties

Property Type Description
X float
Y float

Public Methods

Method Description
Vec2 ( Vector2f vec ) : System.Runtime.InteropServices

Construct the Vec2 from a standard SFML Vector2f

Vec2 ( float x, float y ) : System.Runtime.InteropServices

Construct the Vec2 from its coordinates

Method Details

Vec2() public method

Construct the Vec2 from a standard SFML Vector2f
public Vec2 ( Vector2f vec ) : System.Runtime.InteropServices
vec Vector2f A standard SFML 2D vector
return System.Runtime.InteropServices

Vec2() public method

Construct the Vec2 from its coordinates
public Vec2 ( float x, float y ) : System.Runtime.InteropServices
x float X coordinate
y float Y coordinate
return System.Runtime.InteropServices

Property Details

X public property

Horizontal component of the vector
public float X
return float

Y public property

Vertical component of the vector
public float Y
return float