Table of Contents

Class Vec4s

Namespace
Vintagestory.API.MathTools
Assembly
VintagestoryAPI.dll

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

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

Constructors

Vec4s()

public Vec4s()

Vec4s(short, short, short, short)

public Vec4s(short x, short y, short z, short w)

Parameters

x short
y short
z short
w short

Fields

W

public short W

Field Value

short

X

public short X

Field Value

short

Y

public short Y

Field Value

short

Z

public short Z

Field Value

short

Methods

Equals(Vec4s)

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

public bool Equals(Vec4s other)

Parameters

other Vec4s

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.