public readonly struct Node : IEquatable<Node>
A node in a graph.

Constructors

Node

#
public Node(Point3d location, int attributes)
Create a new node with attributes.
location (Point3d)Location.
attributes (int)Attribute index.

Node

#
public Node(Point3d location)
Create a new node without attributes.
location (Point3d)

Properties

Attributes

#
public int Attributes { get; }
Gets the index of the attributes of this node, or -1 if the node has no attributes.

Location

#
public Point3d Location { get; }
Gets the location of this node.

Methods

Equals

#
public bool Equals(Node other)
other (Node)

Equals

#
public override bool Equals(object obj)
obj (object)
ValueType.Equals

GetHashCode

#
public override int GetHashCode()

ToString

#
public override string ToString()

Transform

#
public Node Transform(SpaceMorph transform)
Apply a transformation to this node.
transform (SpaceMorph)

Transform

#
public Node Transform(Transform transform)
Apply a transformation to this node.
transform (Transform)

WithAttributes

#
public Node WithAttributes(int attributes)
Associate this node with a different set of attributes.
attributes (int)

WithLocation

#
public Node WithLocation(Point3d location)
Move this node to a new location.
location (Point3d)