Struct RndVec3
Vector3 that is sortable and equatable by a rounded value (resolution).
Implements
Inherited Members
Namespace: UnityEngine .Polybrush
Assembly: Unity.Polybrush.dll
Syntax
public struct RndVec3 : IEquatable<RndVec3>
Methods
Equals(object)
Equality comparer for RndVec3
Declaration
public override bool Equals(object b)
Parameters
Type | Name | Description |
---|---|---|
object | b | System.Object that should be compare to this |
Returns
Type | Description |
---|---|
bool | true if the 2 elements are RndVec3 (or Vector3) and are equals |
Overrides
Equals(RndVec3)
Equality comparer for RndVec3
Declaration
public bool Equals(RndVec3 p)
Parameters
Type | Name | Description |
---|---|---|
Rnd |
p | RndVec3 to compare to this |
Returns
Type | Description |
---|---|
bool | true if the 2 RndVec3 are equals |
Equals(Vector3)
Equality comparer for a RndVec3 with a Vector3
Declaration
public bool Equals(Vector3 p)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | p | Vector3 to compare to this |
Returns
Type | Description |
---|---|
bool | true if this is equal to the Vector3 regarding the RndVec3 resolution |
GetHashCode()
HashCode Generation
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | unique hashcode for RndVec3 |
Overrides
ToString()
Stringification of the RndVec3 data
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | String representing the RndVec3 |
Overrides
Operators
implicit operator Vector3(RndVec3)
Constructor for a Vector3 from a RndVec3
Declaration
public static implicit operator Vector3(RndVec3 p)
Parameters
Type | Name | Description |
---|---|---|
Rnd |
p | input RndVec3 |
Returns
Type | Description |
---|---|
Vector3 | Vector3 representing p |
implicit operator RndVec3(Vector3)
Constructor for a RndVec3 from a Vector3
Declaration
public static implicit operator RndVec3(Vector3 p)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | p | input Vector3 |
Returns
Type | Description |
---|---|
Rnd |
RndVec3 representing p |