Click or drag to resize

LinearTickSpacingGetOrgOrEndSnappedToTick Method

Adjusts the parameter x so that x snaps to a tick according to the setting of snapping.

Namespace: Altaxo.Graph.Scales.Ticks
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double GetOrgOrEndSnappedToTick(
	double x,
	double majorSpan,
	int minorTicks,
	BoundaryTickSnapping snapping,
	bool upwards
)

Parameters

x  Double
The boundary value to adjust.
majorSpan  Double
Value of the major tick span.
minorTicks  Int32
Number of minor ticks.
snapping  BoundaryTickSnapping
Setting of the tick snapping.
upwards  Boolean
If true, the value is towards higher values, if false it is adjusted towards smaller values.

Return Value

Double
The adjusted value of x.
See Also