Photon Fusion 2.0.3

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. More...
 
bool Equals (Vector4Compressed other)
 Checks if the current Vector4Compressed instance is equal to the other Vector4Compressed instance. More...
 
override int GetHashCode ()
 Returns the hash code for the current Vector4Compressed instance. More...
 

Static Public Member Functions

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

Public Attributes

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

Properties

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

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.

Member Data Documentation

◆ wEncoded

int wEncoded

Encoded value of the w component.

◆ xEncoded

int xEncoded

Encoded value of the x component.

◆ yEncoded

int yEncoded

Encoded value of the y component.

◆ zEncoded

int zEncoded

Encoded value of the z component.

Property Documentation

◆ W

float W
getset

Gets or sets the w component.

◆ X

float X
getset

Gets or sets the x component.

◆ Y

float Y
getset

Gets or sets the y component.

◆ Z

float Z
getset

Gets or sets the z component.