Segment2d
Segment2d
- direction : bevy_math::direction::Dir2
- half_length : f32
Description
A segment of a line going through the origin along a direction in 2D space.
Functions
Function | Summary |
---|---|
clone(_self) | No Documentation 🚧 |
eq(_self, other) | No Documentation 🚧 |
new(direction, length) | Create a new `Segment2d` from a direction and full length of the segment |
point1(_self) | Get the position of the first point on the line segment |
point2(_self) | Get the position of the second point on the line segment |