Show / Hide Table of Contents

Class 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, similar to NGonCellType rotations. As there, Mirror inverts the y-axis, and is applied before rotation, which is counter clockwise.

Inheritance
System.Object
Connection
Implements
System.IEquatable<Connection>
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public sealed class Connection : ValueType

Properties

Mirror

Declaration
public bool Mirror { get; set; }
Property Value
Type Description
System.Boolean

Rotation

Declaration
public int Rotation { get; set; }
Property Value
Type Description
System.Int32

Sides

Declaration
public int Sides { get; set; }
Property Value
Type Description
System.Int32

Methods

Equals(Connection)

Declaration
public bool Equals(Connection other)
Parameters
Type Name Description
Connection other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
System.Object other
Returns
Type Description
System.Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

GetInverse()

Declaration
public Connection GetInverse()
Returns
Type Description
Connection

ToMatrix()

Give an equivalent rotation in the XY plane.

Declaration
public Matrix4x4 ToMatrix()
Returns
Type Description
Matrix4x4

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String

Operators

Equality(Connection, Connection)

Declaration
public static bool operator ==(Connection lhs, Connection rhs)
Parameters
Type Name Description
Connection lhs
Connection rhs
Returns
Type Description
System.Boolean

Inequality(Connection, Connection)

Declaration
public static bool operator !=(Connection lhs, Connection rhs)
Parameters
Type Name Description
Connection lhs
Connection rhs
Returns
Type Description
System.Boolean

Multiply(Connection, Connection)

Declaration
public static Connection operator *(Connection a, Connection b)
Parameters
Type Name Description
Connection a
Connection b
Returns
Type Description
Connection

Implements

System.IEquatable<>
In This Article
Back to top Generated by DocFX