Table of Contents

Struct ByteVector4

Namespace
OmegaEngine.Foundation.Geometry
Assembly
OmegaEngine.Foundation.dll

Defines a four-component vector with byte accuracy.

public struct ByteVector4 : IEquatable<ByteVector4>
Implements
Extension Methods

Constructors

ByteVector4(byte, byte, byte, byte)

Defines a four-component vector with byte accuracy.

public ByteVector4(byte x, byte y, byte z, byte w)

Parameters

x byte

The X component.

y byte

The Y component.

z byte

The Z component.

w byte

The W component.

Properties

W

Gets or sets the W component of the vector.

public byte W { readonly get; set; }

Property Value

byte

X

Gets or sets the X component of the vector.

public byte X { readonly get; set; }

Property Value

byte

Y

Gets or sets the Y component of the vector.

public byte Y { readonly get; set; }

Property Value

byte

Z

Gets or sets the Z component of the vector.

public byte Z { readonly get; set; }

Property Value

byte

Methods

Equals(ByteVector4)

public bool Equals(ByteVector4 other)

Parameters

other ByteVector4

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override readonly int GetHashCode()

Returns

int

ToString()

public override readonly string ToString()

Returns

string

Operators

operator ==(ByteVector4, ByteVector4)

public static bool operator ==(ByteVector4 left, ByteVector4 right)

Parameters

left ByteVector4
right ByteVector4

Returns

bool

operator !=(ByteVector4, ByteVector4)

public static bool operator !=(ByteVector4 left, ByteVector4 right)

Parameters

left ByteVector4
right ByteVector4

Returns

bool