Table of Contents

Class GraphicsPointNode

Namespace
RDCore.SDK.Model.AST.Statements
Assembly
RDCore.SDK.dll

A coordinate pair of a GraphicsMethodStatementNode: (x, y), or Step (x, y) when the pair is an offset from the last point drawn.

public record GraphicsPointNode : SyntaxNode, IEquatable<SyntaxNode>, IEquatable<GraphicsPointNode>
Inheritance
GraphicsPointNode
Implements
Inherited Members
Extension Methods

Remarks

Not an expression: the parenthesis is no grouping, and (1, 2) has no value to evaluate. It is a node of its own so that the Step keyword, which is written before the parenthesis and is not part of either coordinate, has somewhere to be.

Constructors

GraphicsPointNode(SyntaxNodeId, SourceLocation, bool, ExpressionNode, ExpressionNode)

A coordinate pair of a GraphicsMethodStatementNode: (x, y), or Step (x, y) when the pair is an offset from the last point drawn.

public GraphicsPointNode(SyntaxNodeId Identity, SourceLocation SourceLocation, bool IsRelative, ExpressionNode X, ExpressionNode Y)

Parameters

Identity SyntaxNodeId

A unique identifier for this specific syntax node.

SourceLocation SourceLocation

The document location (Uri+Range) of the parenthesized pair. The Step keyword before it, when there is one, is in the statement's range and in IsRelative.

IsRelative bool

Whether the pair is written with Step, which makes it relative to the current position rather than absolute.

X ExpressionNode

The horizontal coordinate.

Y ExpressionNode

The vertical coordinate.

Remarks

Not an expression: the parenthesis is no grouping, and (1, 2) has no value to evaluate. It is a node of its own so that the Step keyword, which is written before the parenthesis and is not part of either coordinate, has somewhere to be.

Properties

IsRelative

Whether the pair is written with Step, which makes it relative to the current position rather than absolute.

public bool IsRelative { get; init; }

Property Value

bool

X

The horizontal coordinate.

public ExpressionNode X { get; init; }

Property Value

ExpressionNode

Y

The vertical coordinate.

public ExpressionNode Y { get; init; }

Property Value

ExpressionNode