24 #ifndef _UTILS_MATH_TYPES_H_
25 #define _UTILS_MATH_TYPES_H_
28 # define M_TWO_PI 6.28318530717959
157 this->start.
x = start_x;
158 this->start.
y = start_y;
Fawkes library namespace.
struct fawkes::point_struct point_t
Point with cartesian coordinates as signed integers.
struct fawkes::arc_struct arc_t
Defines an arc (or circle)
struct fawkes::field_line_struct field_line_t
Describes a field line.
struct fawkes::ellipse_struct ellipse_t
Defines an ellipse.
struct fawkes::point_6D_struct point_6D_t
Defines a point with 6-degrees of freedom.
struct fawkes::cart_coord_2d_struct cart_coord_2d_t
Cartesian coordinates (2D).
Defines an arc (or circle)
float end_phi
The end angle of the arc.
arc_struct(float radius, float center_x, float center_y, float start_phi=0, float end_phi=M_TWO_PI)
Constructor.
cart_coord_2d_t center
The center of the arc or circle.
float radius
The radius of the arc or circle.
float start_phi
The start angle of the arc.
Cartesian coordinates (2D).
cart_coord_2d_struct(float x, float y)
Constructor.
cart_coord_2d_struct()
Default constructor.
Cartesian coordinates (3D).
cart_coord_2d_t center
The center point of the ellipse.
float height
The total height of the ellipse.
ellipse_struct(float x, float y, float w, float h)
Constructur.
float width
The total width of the ellipse.
Rectangular extent with unsigne integers.
cart_coord_2d_t end
end of the line [m]
field_line_struct(float start_x, float start_y, float end_x, float end_y)
Constructor.
cart_coord_2d_t start
start of the line [m]
field_line_struct(fawkes::cart_coord_2d_t start, fawkes::cart_coord_2d_t end)
Constructor.
float y
y coordinate in meters
float x
x coordinate in meters
Defines a point with 6-degrees of freedom.
float z
The z-coordinate of the point.
float y
The y-coordinate of the point.
float yaw
The angle around the z-axis.
float x
The x-coordinate of the point.
float pitch
The angle around the y-axis.
float roll
The angle around the x-axis.
Point with cartesian coordinates as signed integers.
point_struct(int x, int y)
Constructor.
point_struct()
Default constructor.
float theta
plane-z : space
Rectangle (unsigned integers)
upoint_t start
start point
Point with cartesian coordinates as unsigned integers.
unsigned int x
x coordinate
unsigned int y
y coordinate