Struct ParticleGraphicsAdapterImpl.PositionSnap
A snap of a position that is used to determine the current state of the particle.
Assembly: .dll
Syntax
public struct ParticleGraphicsAdapterImpl.PositionSnap
Constructors
|
Edit this page
View Source
PositionSnap(Vector2Int, Vector2Int, bool, int, bool, ParticleMovement, ParticleJointMovementState, float)
Declaration
public PositionSnap(Vector2Int p1, Vector2Int p2, bool isExpanded, int globalExpansionOrContractionDir, bool noAnimation, ParticleGraphicsAdapterImpl.ParticleMovement movement, ParticleJointMovementState jointMovementState, float timestamp)
Parameters
Fields
|
Edit this page
View Source
globalExpansionOrContractionDir
Declaration
public int globalExpansionOrContractionDir
Field Value
|
Edit this page
View Source
isExpanded
Declaration
Field Value
|
Edit this page
View Source
jointMovementState
Declaration
public ParticleJointMovementState jointMovementState
Field Value
|
Edit this page
View Source
movement
Declaration
public ParticleGraphicsAdapterImpl.ParticleMovement movement
Field Value
|
Edit this page
View Source
noAnimation
Declaration
Field Value
|
Edit this page
View Source
position1
Declaration
public Vector2Int position1
Field Value
Type |
Description |
Vector2Int |
|
|
Edit this page
View Source
position2
Declaration
public Vector2Int position2
Field Value
Type |
Description |
Vector2Int |
|
|
Edit this page
View Source
timestamp
Declaration
Field Value
Methods
|
Edit this page
View Source
Equals(object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object s)
Parameters
Type |
Name |
Description |
object |
s |
|
Returns
Type |
Description |
bool |
true if obj and this instance are the same type and represent the same value; otherwise, false.
|
Overrides
System.ValueType.Equals(object)
|
Edit this page
View Source
GetHashCode()
Dummy value to avoid warnings. Please do not use!
Declaration
public override int GetHashCode()
Returns
Overrides
System.ValueType.GetHashCode()
|
Edit this page
View Source
IsPositionEqual(PositionSnap, PositionSnap)
Compares the positions and expansion states of
the two given snapshots.
Declaration
public static bool IsPositionEqual(ParticleGraphicsAdapterImpl.PositionSnap s1, ParticleGraphicsAdapterImpl.PositionSnap s2)
Parameters
Returns
Type |
Description |
bool |
true if and only if the position and
expansion state of the two given snapshots are equal.
Note that if the snapshots are contracted, their tail
positions might still differ.
|
|
Edit this page
View Source
ToString()
Dummy value to avoid warnings. Please do not use!
Declaration
public override string ToString()
Returns
Overrides
System.ValueType.ToString()
Operators
|
Edit this page
View Source
operator ==(PositionSnap, PositionSnap)
Declaration
public static bool operator ==(ParticleGraphicsAdapterImpl.PositionSnap s1, ParticleGraphicsAdapterImpl.PositionSnap s2)
Parameters
Returns
|
Edit this page
View Source
operator !=(PositionSnap, PositionSnap)
Declaration
public static bool operator !=(ParticleGraphicsAdapterImpl.PositionSnap s1, ParticleGraphicsAdapterImpl.PositionSnap s2)
Parameters
Returns