Photon Fusion 2.0.0

Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
Vector4Compressed Struct Reference

Represents a compressed Vector4 value for network transmission. More...

Inherits INetworkStruct, and IEquatable< Vector4Compressed >.

Public Member Functions

override bool Equals (object obj)
 Checks if the provided object is a Vector4Compressed instance and if it's equal to the current Vector4Compressed instance.
 
bool Equals (Vector4Compressed other)
 Checks if the current Vector4Compressed instance is equal to the other Vector4Compressed instance.
 
override int GetHashCode ()
 Returns the hash code for the current Vector4Compressed instance.
 

Static Public Member Functions

static implicit operator Vector4 (Vector4Compressed q)
 Implicit conversion from Vector4Compressed to Vector4.
 
static implicit operator Vector4Compressed (Vector4 v)
 Implicit conversion from Vector4 to Vector4Compressed.
 
static bool operator!= (Vector4Compressed left, Vector4Compressed right)
 Inequality operator for Vector4Compressed struct.
 
static bool operator== (Vector4Compressed left, Vector4Compressed right)
 Equality operator for Vector4Compressed struct.
 

Public Attributes

int wEncoded
 Encoded value of the w component.
 
int xEncoded
 Encoded value of the x component.
 
int yEncoded
 Encoded value of the y component.
 
int zEncoded
 Encoded value of the z component.
 

Properties

float W [get, set]
 Gets or sets the w component.
 
float X [get, set]
 Gets or sets the x component.
 
float Y [get, set]
 Gets or sets the y component.
 
float Z [get, set]
 Gets or sets the z component.
 

Detailed Description

Represents a compressed Vector4 value for network transmission.

Member Function Documentation

◆ Equals() [1/2]

override bool Equals ( object  obj)

Checks if the provided object is a Vector4Compressed instance and if it's equal to the current Vector4Compressed instance.

Parameters
objThe object to compare with the current Vector4Compressed instance.
Returns
True if the provided object is a Vector4Compressed instance and it's equal to the current Vector4Compressed instance, otherwise false.

◆ Equals() [2/2]

bool Equals ( Vector4Compressed  other)

Checks if the current Vector4Compressed instance is equal to the other Vector4Compressed instance.

Parameters
otherThe other Vector4Compressed instance to compare with the current Vector4Compressed instance.
Returns
True if the values of both Vector4Compressed instances are equal, otherwise false.

◆ GetHashCode()

override int GetHashCode ( )

Returns the hash code for the current Vector4Compressed instance.

Returns
A hash code for the current Vector4Compressed instance.

◆ operator Vector4()

static implicit operator Vector4 ( Vector4Compressed  q)
static

Implicit conversion from Vector4Compressed to Vector4.

Parameters
qThe Vector4Compressed instance to convert.
Returns
The decompressed Vector4 value of the Vector4Compressed instance.

◆ operator Vector4Compressed()

static implicit operator Vector4Compressed ( Vector4  v)
static

Implicit conversion from Vector4 to Vector4Compressed.

Parameters
vThe Vector4 value to convert.
Returns
A new Vector4Compressed instance with the compressed value of the Vector4.

◆ operator!=()

static bool operator!= ( Vector4Compressed  left,
Vector4Compressed  right 
)
static

Inequality operator for Vector4Compressed struct.

Parameters
leftFirst Vector4Compressed instance.
rightSecond Vector4Compressed instance.
Returns
True if the value of the first Vector4Compressed instance is not equal to the value of the second Vector4Compressed instance, otherwise false.

◆ operator==()

static bool operator== ( Vector4Compressed  left,
Vector4Compressed  right 
)
static

Equality operator for Vector4Compressed struct.

Parameters
leftFirst Vector4Compressed instance.
rightSecond Vector4Compressed instance.
Returns
True if the value of the first Vector4Compressed instance is equal to the value of the second Vector4Compressed instance, otherwise false.