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
IdentitySyntaxNodeIdA unique identifier for this specific syntax node.
SourceLocationSourceLocationThe document location (
Uri+Range) of the parenthesized pair. TheStepkeyword before it, when there is one, is in the statement's range and inIsRelative.IsRelativeboolWhether the pair is written with
Step, which makes it relative to the current position rather than absolute.XExpressionNodeThe horizontal coordinate.
YExpressionNodeThe 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
X
The horizontal coordinate.
public ExpressionNode X { get; init; }
Property Value
Y
The vertical coordinate.
public ExpressionNode Y { get; init; }