Struct Connection
Represents how the edges (2d) or faces (3d) of cells can connect to each other.
In 2d, rotation/sides are unused, as two edges can only connect together normally or reflected.
In 3d, this represents both a rotation and reflection
The rotation and reflection are interpreted, similar to NGonCellType rotations.
I.e. Mirror represents is a reflection that keeps (CellDir)0 unchanged (i.e. inverts the y-axis),
and Rotation represents a rotation counter clockwise of Rotation/Sides*360 degrees.
Mirror is applied first, then rotation.
Assembly: Sylves.dll
Syntax
public struct Connection : IEquatable<Connection>
Properties
Mirror
Declaration
public bool Mirror { get; set; }
Property Value
Rotation
Declaration
public int Rotation { get; set; }
Property Value
Sides
Declaration
public int Sides { get; set; }
Property Value
Methods
Equals(Connection)
Declaration
public bool Equals(Connection other)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object other)
Parameters
| Type |
Name |
Description |
| object |
other |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
GetInverse()
Declaration
public Connection GetInverse()
Returns
ToMatrix()
Give an equivalent rotation in the XY plane.
Declaration
public Matrix4x4 ToMatrix()
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(Connection, Connection)
Declaration
public static bool operator ==(Connection lhs, Connection rhs)
Parameters
Returns
operator !=(Connection, Connection)
Declaration
public static bool operator !=(Connection lhs, Connection rhs)
Parameters
Returns
operator *(Connection, Connection)
Declaration
public static Connection operator *(Connection a, Connection b)
Parameters
Returns
Implements