public sealed class Edge
An edge in a constraint system.

Fields

Construction

#
public readonly bool Construction

Id

#
public readonly Guid Id

NodeA

#
public readonly Guid NodeA

NodeB

#
public readonly Guid NodeB

Scalar

#
public readonly Guid Scalar

Type

#
public readonly EdgeType Type

Properties

IsUnset

#
public bool IsUnset { get; }
Gets whether this edge is unset. Unset edges have empty Ids.

IsValid

#
public bool IsValid { get; }
Gets whether this edge is valid. Valid edges have non-empty and different node ids.

Unset

#
public static Edge Unset { get; }
Gets an unset edge.

Methods

CreateArc

#
public static Edge CreateArc(Guid nodeFrom, Guid nodeTo, Guid deviation, bool construction = false)
Create a circle edge with a new id.
nodeFrom (Guid)
nodeTo (Guid)
deviation (Guid)
construction (bool = false)

CreateCircle

#
public static Edge CreateCircle(Guid nodeCentre, Guid nodeRadius, bool construction = false)
Create a circle edge with a new id.
nodeCentre (Guid)
nodeRadius (Guid)
construction (bool = false)

CreateLine

#
public static Edge CreateLine(Guid nodeFrom, Guid nodeTo, bool construction = false)
Create a line edge with a new id.
nodeFrom (Guid)
nodeTo (Guid)
construction (bool = false)

WithConstruction

#
public Edge WithConstruction()
Set the 'Construction' flag of this edge to true.

WithoutConstruction

#
public Edge WithoutConstruction()
Set the 'Construction' flag of this edge to false.