Table of Contents

Class VectorExpression

Namespace
NCalc.Domain
Assembly
NCalc.dll

AST node representing a vector literal: a fixed-length list of component expressions that are each evaluated to a numeric value and combined into a Vector.

public sealed class VectorExpression : LogicalExpression
Inheritance
VectorExpression
Inherited Members

Constructors

VectorExpression(LogicalExpressionList, MathHelperOptions)

AST node representing a vector literal: a fixed-length list of component expressions that are each evaluated to a numeric value and combined into a Vector.

public VectorExpression(LogicalExpressionList expressions, MathHelperOptions mathHelperOptions)

Parameters

expressions LogicalExpressionList
mathHelperOptions MathHelperOptions

Properties

Expressions

The ordered list of component expressions. Each expression must evaluate to a numeric value; together they define the vector's dimensions.

public LogicalExpressionList Expressions { get; set; }

Property Value

LogicalExpressionList

MathHelperOptions

public MathHelperOptions MathHelperOptions { get; }

Property Value

MathHelperOptions

Methods

Accept<T>(ILogicalExpressionVisitor<T>, CancellationToken)

public override T Accept<T>(ILogicalExpressionVisitor<T> visitor, CancellationToken cancellationToken = default)

Parameters

visitor ILogicalExpressionVisitor<T>
cancellationToken CancellationToken

Returns

T

Type Parameters

T