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
Properties
Center
public double Center { get; }
Property Value
HasBeenSet
public bool HasBeenSet { get; }
Property Value
Infinity
public static CoordinateRangeMutable Infinity { get; }
Property Value
Max
public double Max { get; set; }
Property Value
Min
public double Min { get; set; }
Property Value
NotSet
This infinite inverted range is used to indicate a range that has not yet been set
public static CoordinateRangeMutable NotSet { get; }
Property Value
Span
public double Span { get; }
Property Value
ToCoordinateRange
public CoordinateRange ToCoordinateRange { get; }
Property Value
ToRectifiedCoordinateRange
public CoordinateRange ToRectifiedCoordinateRange { get; }
Property Value
Methods
Contains(double)
Returns true if the given position is within the range (inclusive)
public bool Contains(double position)
Parameters
position
double
Returns
Equals(CoordinateRangeMutable?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(CoordinateRangeMutable? other)
Parameters
other
CoordinateRangeMutableAn 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
objectThe 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
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
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
ZoomMouseDelta(float, float)
public void ZoomMouseDelta(float deltaPx, float dataSizePx)
Parameters
ZoomOut(double)
public void ZoomOut(double multiple)
Parameters
multiple
double
Operators
operator ==(CoordinateRangeMutable, CoordinateRangeMutable)
public static bool operator ==(CoordinateRangeMutable a, CoordinateRangeMutable b)
Parameters
Returns
operator !=(CoordinateRangeMutable, CoordinateRangeMutable)
public static bool operator !=(CoordinateRangeMutable a, CoordinateRangeMutable b)