Struct Interval1i
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct Interval1i : IEnumerable<int>, IEnumerable
Constructors
Interval1i(Interval1i)
Declaration
public Interval1i(Interval1i copy)
Parameters
Interval1i(Int32)
Declaration
Parameters
Type |
Name |
Description |
Int32 |
f |
|
Interval1i(Int32, Int32)
Declaration
public Interval1i(int x, int y)
Parameters
Interval1i(Int32[])
Declaration
public Interval1i(int[] v2)
Parameters
Type |
Name |
Description |
Int32[] |
v2 |
|
Fields
a
Declaration
Field Value
b
Declaration
Field Value
Empty
Declaration
public static readonly Interval1i Empty
Field Value
Infinite
Declaration
public static readonly Interval1i Infinite
Field Value
Zero
Declaration
public static readonly Interval1i Zero
Field Value
Properties
Center
Declaration
public int Center { get; }
Property Value
Item[Int32]
Declaration
public int this[int key] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
key |
|
Property Value
Length
Declaration
public int Length { get; }
Property Value
LengthSquared
Declaration
public int LengthSquared { get; }
Property Value
Methods
Contain(Int32)
Declaration
public void Contain(int d)
Parameters
Type |
Name |
Description |
Int32 |
d |
|
Contains(Int32)
Declaration
public bool Contains(int d)
Parameters
Type |
Name |
Description |
Int32 |
d |
|
Returns
Dist(Interval1i)
Declaration
public int Dist(Interval1i o)
Parameters
Returns
FromToInclusive(Int32, Int32)
construct interval [a, b]
Declaration
public static Interval1i FromToInclusive(int a, int b)
Parameters
Returns
GetEnumerator()
Declaration
public IEnumerator<int> GetEnumerator()
Returns
Overlaps(Interval1i)
Declaration
public bool Overlaps(Interval1i o)
Parameters
Returns
Range(Int32)
construct interval [0, N-1]
Declaration
public static Interval1i Range(int N)
Parameters
Type |
Name |
Description |
Int32 |
N |
|
Returns
Range(Int32, Int32)
construct interval [start, start+N-1]
Declaration
public static Interval1i Range(int start, int N)
Parameters
Returns
RangeInclusive(Int32)
construct interval [0, N-1]
Declaration
public static Interval1i RangeInclusive(int N)
Parameters
Type |
Name |
Description |
Int32 |
N |
|
Returns
Set(Interval1i)
Declaration
public void Set(Interval1i o)
Parameters
Set(Int32, Int32)
Declaration
public void Set(int fA, int fB)
Parameters
SquaredDist(Interval1i)
Declaration
public int SquaredDist(Interval1i o)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
Addition(Interval1i, Int32)
Declaration
public static Interval1i operator +(Interval1i a, int f)
Parameters
Returns
Multiply(Interval1i, Int32)
Declaration
public static Interval1i operator *(Interval1i a, int f)
Parameters
Returns
Subtraction(Interval1i, Int32)
Declaration
public static Interval1i operator -(Interval1i a, int f)
Parameters
Returns
UnaryNegation(Interval1i)
Declaration
public static Interval1i operator -(Interval1i v)
Parameters
Returns
Implements