raimad.RectWire
class
RectWire(
raimad.compo.Compo,
):
A rectangle defined by two points and a thickness.
def _make(self, p1: 'rai.typing.Point', p2: 'rai.typing.Point', width: float) -> None:
Make RectWire betweent two points.
Parameters
p1
The first point
p2
The second point
width
Width of rectwire
Returns
Self
The newly construct RectWire object
@classmethod def from_points(cls, p1: 'rai.typing.Point', p2: 'rai.typing.Point', width: float) -> Self:
Make RectWire betweent two points.
Parameters
p1
The first point
p2
The second point
width
Width of rectwire
Returns
Self
The newly construct RectWire object
@classmethod def from_polar(cls, p1: 'rai.typing.Point', angle: float, length: float, width: float) -> Self:
Make RectWire from polar coordinates.
Parameters
p1
Point where the RectWire starts
angle
Angle of rectwire in [numpy convention](coords-transforms.md)
length
Length of rectwire
width
Width of rectwire
Returns
Self
The newly construct RectWire object