C# Class SFML.Graphics.Glsl.Vec2

Afficher le fichier Open project: SFML/SFML.Net Class Usage Examples

Méthodes publiques

Свойство Type Description
X float
Y float

Méthodes publiques

Méthode 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 méthode

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

Vec2() public méthode

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

Property Details

X public_oe property

Horizontal component of the vector
public float X
Résultat float

Y public_oe property

Vertical component of the vector
public float Y
Résultat float