Table of Contents

Class Interval

Namespace
Huddly.Sdk.Models
Assembly
Huddly.Sdk.dll
public record Interval : IEquatable<Interval>
Inheritance
Interval
Implements
Inherited Members

Constructors

Interval(double, double)

public Interval(double Min, double Max)

Parameters

Min double
Max double

Properties

Max

public double Max { get; init; }

Property Value

double

Min

public double Min { get; init; }

Property Value

double

Methods

Remap(double, Interval, Interval)

Takes a number in the range [oldMin, oldMax] and returns its equivalent value in the range [newMin, newMax]

public static double Remap(double value, Interval oldInterval, Interval newInterval)

Parameters

value double

The original value

oldInterval Interval

The original interval, inclusive

newInterval Interval

The new interval, inclusive

Returns

double

A number in the range [newMin, newMax], corresponding to the original number on the original range

Remap(double, double, double, double, double)

Takes a number in the range [oldMin, oldMax] and returns its equivalent value in the range [newMin, newMax]

public static double Remap(double value, double oldMin, double oldMax, double newMin, double newMax)

Parameters

value double

The original value

oldMin double

The original minimum, inclusive

oldMax double

The original maximum, inclusive

newMin double

The new minimum, inclusive

newMax double

The new maximum, inclusive

Returns

double

A number in the range [newMin, newMax], corresponding to the original number on the original range

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.