Table of Contents

Class CoordinateRangeMutable

Namespace
ScottPlot
Assembly
ScottPlot.dll

Represents a range of values between two coordinates on a single axis

public class CoordinateRangeMutable : IEquatable<CoordinateRangeMutable>
Inheritance
CoordinateRangeMutable
Implements
Inherited Members
Extension Methods

Constructors

CoordinateRangeMutable(double, double)

public CoordinateRangeMutable(double min, double max)

Parameters

min double
max double

Properties

Center

public double Center { get; }

Property Value

double

HasBeenSet

public bool HasBeenSet { get; }

Property Value

bool

Infinity

public static CoordinateRangeMutable Infinity { get; }

Property Value

CoordinateRangeMutable

Max

public double Max { get; set; }

Property Value

double

Min

public double Min { get; set; }

Property Value

double

NotSet

This infinite inverted range is used to indicate a range that has not yet been set

public static CoordinateRangeMutable NotSet { get; }

Property Value

CoordinateRangeMutable

Span

public double Span { get; }

Property Value

double

ToCoordinateRange

public CoordinateRange ToCoordinateRange { get; }

Property Value

CoordinateRange

ToRectifiedCoordinateRange

public CoordinateRange ToRectifiedCoordinateRange { get; }

Property Value

CoordinateRange

Methods

Contains(double)

Returns true if the given position is within the range (inclusive)

public bool Contains(double position)

Parameters

position double

Returns

bool

Equals(CoordinateRangeMutable?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(CoordinateRangeMutable? other)

Parameters

other CoordinateRangeMutable

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Expand(CoordinateRange)

Expand this range if needed to ensure the given range is included

public void Expand(CoordinateRange range)

Parameters

range CoordinateRange

Expand(CoordinateRangeMutable)

Expand this range if needed to ensure the given range is included

public void Expand(CoordinateRangeMutable range)

Parameters

range CoordinateRangeMutable

Expand(double)

Expand the range if needed to include the given point

public void Expand(double value)

Parameters

value double

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Pan(double)

public void Pan(double delta)

Parameters

delta double

PanMouse(float, float)

public void PanMouse(float mouseDeltaPx, float dataSizePx)

Parameters

mouseDeltaPx float
dataSizePx float

Reset()

Reset this range to inverted infinite values to indicate the range has not yet been set

public void Reset()

Set(CoordinateRange)

public void Set(CoordinateRange range)

Parameters

range CoordinateRange

Set(CoordinateRangeMutable)

public void Set(CoordinateRangeMutable range)

Parameters

range CoordinateRangeMutable

Set(IAxis)

public void Set(IAxis otherAxis)

Parameters

otherAxis IAxis

Set(double, double)

public void Set(double min, double max)

Parameters

min double
max double

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

ZoomFrac(double)

public void ZoomFrac(double frac)

Parameters

frac double

ZoomFrac(double, double)

public void ZoomFrac(double frac, double zoomTo)

Parameters

frac double
zoomTo double

ZoomMouseDelta(float, float)

public void ZoomMouseDelta(float deltaPx, float dataSizePx)

Parameters

deltaPx float
dataSizePx float

ZoomOut(double)

public void ZoomOut(double multiple)

Parameters

multiple double

Operators

operator ==(CoordinateRangeMutable, CoordinateRangeMutable)

public static bool operator ==(CoordinateRangeMutable a, CoordinateRangeMutable b)

Parameters

a CoordinateRangeMutable
b CoordinateRangeMutable

Returns

bool

operator !=(CoordinateRangeMutable, CoordinateRangeMutable)

public static bool operator !=(CoordinateRangeMutable a, CoordinateRangeMutable b)

Parameters

a CoordinateRangeMutable
b CoordinateRangeMutable

Returns

bool