GraphConstraints

References
Axis-lock and ratio constraints applied by a FunctionEditorBase on top of its current frame. Each field is nullable so "unset" means "no constraint on this dimension".

Constructors

GraphConstraints

#
public GraphConstraints(
ratio,
x,
lockX,
y,
lockY
)

GraphConstraints

#
public GraphConstraints(
reader
)

Fields

LockX

#
Gets whether the domain of the graph editor is locked.
public readonly bool LockX

LockY

#
Gets whether the codomain of the graph editor is locked.
public readonly bool LockY

Ratio

#
Gets the ratio of pixels-per-unit on the X and Y axes. If both the domain and the codomain are locked, this ratio will be ignored.
public readonly double Ratio

X

#
Gets the interval for the domain. If LockX is false, this may be ignored.
public readonly Interval X

Y

#
Gets the interval for the codomain. If LockY is false, this may be ignored.
public readonly Interval Y

Properties

Default

#
public static GraphConstraints Default { get; }

Methods

Equals

#
public bool Equals()

Equals

#
public override bool Equals(
obj
)
ValueType.Equals

GetHashCode

#
public override int GetHashCode()

Store

#
public void Store(
writer
)
Store

WithCodomain

#
public GraphConstraints WithCodomain(
codomain,
lockY
)

WithDomain

#
public GraphConstraints WithDomain(
domain,
lockX
)

WithLock

#
public GraphConstraints WithLock(
lockX,
lockY
)

WithRatio

#
public GraphConstraints WithRatio(
ratio
)

Operators