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
Properties
W
Gets or sets the W component of the vector.
public byte W { readonly get; set; }
Property Value
X
Gets or sets the X component of the vector.
public byte X { readonly get; set; }
Property Value
Y
Gets or sets the Y component of the vector.
public byte Y { readonly get; set; }
Property Value
Z
Gets or sets the Z component of the vector.
public byte Z { readonly get; set; }
Property Value
Methods
Equals(ByteVector4)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ByteVector4 other)
Parameters
other
ByteVector4An object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
obj
objectThe 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
ByteVector4right
ByteVector4
Returns
operator !=(ByteVector4, ByteVector4)
public static bool operator !=(ByteVector4 left, ByteVector4 right)
Parameters
left
ByteVector4right
ByteVector4