CVBpy 15.0
AngleRange Class Reference

Container for angle range definitions. More...

Inherits object.

Public Member Functions

bool contains (self, cvb.Angle angle)
 Checks if the angle is within the range. More...
 
bool intersects_with (self, cvb.AngleRange other)
 Checks if the angle range intersects with another angle range. More...
 

Properties

 max = property
 cvb.Angle: Gets or sets the maximum angle.
 
 min = property
 cvb.Angle: Gets or sets the minimum angle.
 

Detailed Description

Container for angle range definitions.

Creates a angle range.

Parameters

min : cvb.Angle Minimum value.

max : cvb.Angle Maximum value.

Member Function Documentation

◆ contains()

bool contains (   self,
cvb.Angle  angle 
)

Checks if the angle is within the range.

Parameters

angle : cvb.Angle Angle to be checked.

Returns

bool True if the angle is within the range (border included), False otherwise.

◆ intersects_with()

bool intersects_with (   self,
cvb.AngleRange  other 
)

Checks if the angle range intersects with another angle range.

Parameters

other : cvb.AngleRange Range for intersection test.

Returns

bool True if this range and the other range have at least one angle in common, False otherwise.