Table of Contents

Class Vec2f

Namespace
Vintagestory.API.MathTools
Assembly
VintagestoryAPI.dll

Represents a vector of 2 floats. Go bug Tyron of you need more utility methods in this class.

[JsonObject(MemberSerialization.OptIn)]
[ProtoContract]
public class Vec2f
Inheritance
Vec2f

Fields

X (Optional) (Default: 0)

The X element of the vector.

[JsonProperty]
[ProtoMember(1)]
public float X

Field Value

float

Y (Optional) (Default: 0)

The Y element of the vector.

[JsonProperty]
[ProtoMember(2)]
public float Y

Field Value

float