Struct Interval1d
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
Constructors
Interval1d(Interval1d)
Declaration
public Interval1d(Interval1d copy)
Parameters
Interval1d(Double)
Declaration
public Interval1d(double f)
Parameters
Type |
Name |
Description |
Double |
f |
|
Interval1d(Double, Double)
Declaration
public Interval1d(double x, double y)
Parameters
Interval1d(Double[])
Declaration
public Interval1d(double[] v2)
Parameters
Type |
Name |
Description |
Double[] |
v2 |
|
Interval1d(Single)
Declaration
public Interval1d(float f)
Parameters
Type |
Name |
Description |
Single |
f |
|
Interval1d(Single, Single)
Declaration
public Interval1d(float x, float y)
Parameters
Interval1d(Single[])
Declaration
public Interval1d(float[] v2)
Parameters
Type |
Name |
Description |
Single[] |
v2 |
|
Fields
a
Declaration
Field Value
b
Declaration
Field Value
Empty
Declaration
public static readonly Interval1d Empty
Field Value
Infinite
Declaration
public static readonly Interval1d Infinite
Field Value
Zero
Declaration
public static readonly Interval1d Zero
Field Value
Properties
Center
Declaration
public double Center { get; }
Property Value
IsConstant
Declaration
public bool IsConstant { get; }
Property Value
Item[Int32]
Declaration
public double this[int key] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
key |
|
Property Value
Length
Declaration
public double Length { get; }
Property Value
LengthSquared
Declaration
public double LengthSquared { get; }
Property Value
Methods
Clamp(Double)
clamp value f to interval [a,b]
Declaration
public double Clamp(double f)
Parameters
Type |
Name |
Description |
Double |
f |
|
Returns
Contain(Double)
Declaration
public void Contain(double d)
Parameters
Type |
Name |
Description |
Double |
d |
|
Contains(Double)
Declaration
public bool Contains(double d)
Parameters
Type |
Name |
Description |
Double |
d |
|
Returns
Dist(Interval1d)
Declaration
public double Dist(Interval1d o)
Parameters
Returns
GetT(Double)
Convert value into (clamped) t value in range [0,1]
Declaration
public double GetT(double value)
Parameters
Type |
Name |
Description |
Double |
value |
|
Returns
Interpolate(Double)
interpolate between a and b using value t in range [0,1]
Declaration
public double Interpolate(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
IntersectionWith(ref Interval1d)
Declaration
public Interval1d IntersectionWith(ref Interval1d o)
Parameters
Returns
Overlaps(Interval1d)
Declaration
public bool Overlaps(Interval1d o)
Parameters
Returns
Set(Interval1d)
Declaration
public void Set(Interval1d o)
Parameters
Set(Double, Double)
Declaration
public void Set(double fA, double fB)
Parameters
SquaredDist(Interval1d)
Declaration
public double SquaredDist(Interval1d o)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Unsorted(Double, Double)
Declaration
public static Interval1d Unsorted(double x, double y)
Parameters
Returns
Operators
Addition(Interval1d, Double)
Declaration
public static Interval1d operator +(Interval1d a, double f)
Parameters
Returns
Multiply(Interval1d, Double)
Declaration
public static Interval1d operator *(Interval1d a, double f)
Parameters
Returns
Subtraction(Interval1d, Double)
Declaration
public static Interval1d operator -(Interval1d a, double f)
Parameters
Returns
UnaryNegation(Interval1d)
Declaration
public static Interval1d operator -(Interval1d v)
Parameters
Returns