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
Inherited Members
Extension Methods

Constructors

ByteVector4(byte, byte, byte, byte)

Creates a new vector.

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)

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

public bool Equals(ByteVector4 other)

Parameters

other ByteVector4

An object to compare with this object.

Returns

bool

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

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

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