Table of Contents

Class Vec4us

Namespace
Vintagestory.API.MathTools
Assembly
VintagestoryAPI.dll

Represents a vector of 4 unsigned shorts. Go bug Tyron if you need more utility methods in this class.

public class Vec4us : IEquatable<Vec4us>
Inheritance
Vec4us
Implements
Inherited Members

Constructors

Vec4us()

public Vec4us()

Vec4us(ushort, ushort, ushort, ushort)

public Vec4us(ushort x, ushort y, ushort z, ushort w)

Parameters

x ushort
y ushort
z ushort
w ushort

Fields

W

public ushort W

Field Value

ushort

X

public ushort X

Field Value

ushort

Y

public ushort Y

Field Value

ushort

Z

public ushort Z

Field Value

ushort

Methods

Equals(Vec4us)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Vec4us other)

Parameters

other Vec4us

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.