ostk.physics.unit.Interval¶
- class Interval(
- self: ostk.physics.unit.Interval,
- arg0: ostk.physics.unit.Length,
- arg1: ostk.physics.unit.Length,
- arg2: ostk.mathematics.object.RealInterval.Type,
- arg0: ostk.physics.unit.Length,
Bases:
pybind11_object
Constructor.
- Parameters:
aLowerBound (Length) -- The lower bound.
anUpperBound (Length) -- The upper bound.
aType (Interval.Type) -- The type.
Methods
Construct a closed interval.
Check if the interval contains another interval.
Check if the interval contains a length.
Get the lower bound.
Get the upper bound.
Check if the interval intersects another interval.
Check if the interval is defined.
Check if the interval is degenerate.
Get an undefined interval.
- static closed(
- arg0: ostk.physics.unit.Length,
- arg1: ostk.physics.unit.Length,
Construct a closed interval.
- Returns:
A closed interval.
- Return type:
- contains_interval(
- self: ostk.physics.unit.Interval,
- arg0: ostk.physics.unit.Interval,
Check if the interval contains another interval.
- contains_length(
- self: ostk.physics.unit.Interval,
- arg0: ostk.physics.unit.Length,
Check if the interval contains a length.
- get_lower_bound(self: ostk.physics.unit.Interval) ostk.physics.unit.Length ¶
Get the lower bound.
- Returns:
The lower bound.
- Return type:
- get_upper_bound(self: ostk.physics.unit.Interval) ostk.physics.unit.Length ¶
Get the upper bound.
- Returns:
The upper bound.
- Return type:
- intersects(
- self: ostk.physics.unit.Interval,
- arg0: ostk.physics.unit.Interval,
Check if the interval intersects another interval.
- Returns:
True if intersects.
- Return type:
- is_defined(self: ostk.physics.unit.Interval) bool ¶
Check if the interval is defined.
- Returns:
True if defined.
- Return type:
- is_degenerate(self: ostk.physics.unit.Interval) bool ¶
Check if the interval is degenerate.
- Returns:
True if degenerate.
- Return type:
- static undefined() ostk.physics.unit.Interval ¶
Get an undefined interval.
- Returns:
An undefined interval.
- Return type: