Photon Fusion 2.0.3

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

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

Inherits INetworkStruct, and IEquatable< Vector3Compressed >.

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

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 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 Vector3 value for network transmission.

Member Function Documentation

◆ Equals() [1/2]

override bool Equals ( object  obj)

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

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

◆ Equals() [2/2]

bool Equals ( Vector3Compressed  other)

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

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

◆ GetHashCode()

override int GetHashCode ( )

Returns the hash code for the current Vector3Compressed instance.

Returns
A hash code for the current Vector3Compressed instance.

◆ operator Vector2()

static implicit operator Vector2 ( Vector3Compressed  q)
static

Implicit conversion from Vector3Compressed to Vector2.

Parameters
qThe Vector3Compressed instance to convert.
Returns
The decompressed Vector2 value of the Vector3Compressed instance.

◆ operator Vector3()

static implicit operator Vector3 ( Vector3Compressed  q)
static

Implicit conversion from Vector3Compressed to Vector3.

Parameters
qThe Vector3Compressed instance to convert.
Returns
The decompressed Vector3 value of the Vector3Compressed instance.

◆ operator Vector3Compressed() [1/2]

static implicit operator Vector3Compressed ( Vector2  v)
static

Implicit conversion from Vector2 to Vector3Compressed.

Parameters
vThe Vector2 value to convert.
Returns
A new Vector3Compressed instance with the compressed value of the Vector2.

◆ operator Vector3Compressed() [2/2]

static implicit operator Vector3Compressed ( Vector3  v)
static

Implicit conversion from Vector3 to Vector3Compressed.

Parameters
vThe Vector3 value to convert.
Returns
A new Vector3Compressed instance with the compressed value of the Vector3.

◆ operator!=()

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

Inequality operator for Vector3Compressed struct.

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

◆ operator==()

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

Equality operator for Vector3Compressed struct.

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

Member Data Documentation

◆ 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

◆ 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.