Convex polygon component. More...
#include <wizard_engine/component.hpp>
#include <wizard_engine/export.hpp>
#include <wizard_engine/math.hpp>
Go to the source code of this file.
Classes | |
class | wze::polygon |
Namespaces | |
namespace | wze |
Wizard Engine. | |
Convex polygon component.
Returns the state of the collision with another polygon.
Returns whether a point is inside the polygon.
Constructs a polygon instance.
Sets whether the y position is affected by the angle.
Returns whether the y position is affected by the angle.
Sets whether the x position is affected by the angle.
Returns whether the x position is affected by the angle.
Sets whether the angle is attached to entities.
Returns whether the angle is attached to entities.
Sets whether the y position is attached to entities.
Returns whether the y position is attached to entities.
Sets whether the x position is attached to entities.
Returns whether the x position is attached to entities.
Sets the angle offset of the polygon.
Returns the angle offset of the polygon.
Sets the y offset of the polygon.
Returns the y offset of the polygon.
Sets the x offset of the polygon.
Returns the x offset of the polygon.
Returns the transformation matrix of the polygon.
Sets the scale of the polygon.
Returns the scale of the polygon.
Sets the angle of the polygon.
Returns the angle of the polygon.
Sets the y position of the polygon.
Returns the y position of the polygon.
Sets the x position of the polygon.
Returns the x position of the polygon.
Returns the radius of the points of the polygon.
Returns the points of the polygon.
Returns the radius of the shape of the polygon.
Returns the shape of the polygon.
Returns the projection of the polygon on a vector.
Returns the circumradius of the shape of the polygon.
Updates the y positions of the points of the polygon.
Updates the x positions of the points of the polygon.
vector | Vector to project on. |
x | X position of the polygon. |
y | Y position of the polygon. |
angle | Angle of the polygon. |
scale | Scale of the polygon. |
x_offset | X offset of the polygon. |
y_offset | Y offset of the polygon. |
angle_offset | Angle offset of the polygon. |
attach_x | Whether the x position is attached to entities. |
attach_y | Whether the y position is attached to entities. |
attach_angle | Whether the angle is attached to entities. |
x_angle_lock | Whether the x position is affected by the angle. |
y_angle_lock | Whether the y position is affected by the angle. |
shape | Shape of the polygon. |
x | X position of the polygon. |
y | Y position of the polygon. |
angle | Angle of the polygon. |
scale | Scale of the polygon. |
x_offset | X offset of the polygon. |
y_offset | Y offset of the polygon. |
angle_offset | Angle offset of the polygon. |
attach_x | Whether the x position is attached to entities. |
attach_y | Whether the y position is attached to entities. |
attach_angle | Whether the angle is attached to entities. |
x_angle_lock | Whether the x position is affected by the angle. |
y_angle_lock | Whether the y position is affected by the angle. |
x | X position of the point. |
y | Y position of the point. |
T | Bool for simple overlap check, float for advanced depth check. |
other | Other polygon instance. |
Definition in file polygon.hpp.