public sealed class Scalar
A node in a constraint system.

Fields

Error

#
public readonly double Error

Id

#
public readonly Guid Id

Value

#
public readonly double Value

Properties

IsValid

#
Gets whether this scalar is valid. Valid scalars have numeric values.
public bool IsValid { get; }

Unset

#
Gets an unset scalar.
public static Scalar Unset { get; }

Methods

Create

#
Create a new scalar.
public static Scalar Create(
value,
Numeric value.
error = 0
Error.
)

WithValue

#
Move this node in space to a new location. Be careful when modifying fixed nodes, it is not always desired.
public Scalar WithValue(
value,
error = NaN
)

Convertors

OperationResultDescription
implicitScalarGuidAuto-convert a scalar to its ID.