oevislib_net  0.14.3.0
Loading...
Searching...
No Matches

Range of values. More...

Inheritance diagram for oevislib_net.Basic.Interval:

Public Member Functions

 Interval ()
 Constructs a new Interval object, long zero.
 Interval (float inBegin, float inEnd)
 Constructs a new Interval object, from begin to end.
float GetCenter ()
 Returns the center of the interval.
float GetWidth ()
 Returns the width of the interval.
ByteBuffer Serialize ()
 Serializes the object.
bool Equals (Interval other)
override bool Equals (object obj)
override int GetHashCode ()
override object Clone ()

Static Public Member Functions

static bool operator== (Interval inInterval1, Interval inInterval2)
static bool operator!= (Interval inInterval1, Interval inInterval2)
static Interval Deserialize (ByteBuffer inBuffer)
 De-serialize an Interval buffer.

Properties

float Begin = 0.0f [get, set]
float End = 0.0f [get, set]

Detailed Description

Range of values.

Constructor & Destructor Documentation

◆ Interval() [1/2]

oevislib_net.Basic.Interval.Interval ( )
inline

Constructs a new Interval object, long zero.

◆ Interval() [2/2]

oevislib_net.Basic.Interval.Interval ( float inBegin,
float inEnd )
inline

Constructs a new Interval object, from begin to end.

Parameters
inBeginBegin value.
inEndEnd value.

Member Function Documentation

◆ Deserialize()

Interval oevislib_net.Basic.Interval.Deserialize ( ByteBuffer inBuffer)
inlinestatic

De-serialize an Interval buffer.

Parameters
inBufferBuffer containing the object.
Returns
Deserialized object.

◆ GetCenter()

float oevislib_net.Basic.Interval.GetCenter ( )
inline

Returns the center of the interval.

Returns
Center of the interval.

◆ GetWidth()

float oevislib_net.Basic.Interval.GetWidth ( )
inline

Returns the width of the interval.

The value is either 0 or positive.

Returns
Width of the interval.

◆ Serialize()

ByteBuffer oevislib_net.Basic.Interval.Serialize ( )
inline

Serializes the object.

Returns
Buffer where the object is stored.