Gamp v0.0.7-36-g24b1eb6
Gamp: Graphics, Audio, Multimedia and Processing
|
#include <geom2f.hpp>
Public Member Functions | |
Rect2f (const Point2f &tl_, const float width, const float height) noexcept | |
Rect2f (const Point2f &tl_, const float width, const float height, const float radians) noexcept | |
Rect2f (const Point2f &tl_, const Point2f &tr_, const Point2f &bl_, const Point2f &br_) noexcept | |
AABBox2f | box () const noexcept override |
bool | contains (const Point2f &o) const noexcept override |
bool | intersection (Vec2f &reflect_out, Vec2f &cross_normal, Point2f &cross_point, const LineSeg2f &in) const noexcept override |
Return whether this object intersects with the given line segment and if intersecting, the crossing point (intersection), the normalized normal of the crossing surface and the reflection out vector. | |
bool | intersection (Vec2f &reflect_out, Vec2f &cross_normal, Point2f &cross_point, const LineSeg2f &in, const float in_radius) const noexcept |
bool | intersects (const AABBox2f &o) const noexcept override |
bool | intersects (const Geom2f &o) const noexcept override |
bool | intersects (const LineSeg2f &o) const noexcept override |
void | move (const float dx, const float dy) noexcept override |
void | move (const Point2f &d) noexcept override |
void | move_dir (const float d) noexcept override |
void | rotate (const float radians) noexcept override |
void | rotate (const float radians, const Point2f &p) noexcept |
void | set_top_left (const Point2f &p) |
std::string | toString () const noexcept override |
![]() | |
virtual bool | tick (const float dt) noexcept |
![]() | |
virtual | ~Geom2f ()=default |
Public Attributes | |
float | dir_angle |
direction angle in radians | |
Point2f | p_a |
Unrotated, clockwise (CW): | |
Point2f | p_b |
Unrotated top-right. | |
Point2f | p_c |
Unrotated bottom-left. | |
Point2f | p_center |
Point2f | p_d |
Unrotated bottom_right. | |
Definition at line 500 of file geom2f.hpp.
|
inlinenoexcept |
Definition at line 524 of file geom2f.hpp.
|
inlinenoexcept |
Definition at line 535 of file geom2f.hpp.
|
inlinenoexcept |
Definition at line 545 of file geom2f.hpp.
|
inlineoverridevirtualnoexcept |
Implements jau::math::geom::Geom2f.
Definition at line 552 of file geom2f.hpp.
|
inlineoverridevirtualnoexcept |
Implements jau::math::geom::AGeom2f.
Definition at line 556 of file geom2f.hpp.
|
inlineoverridevirtualnoexcept |
Implements jau::math::geom::AGeom2f.
Definition at line 566 of file geom2f.hpp.
|
inlineoverridevirtualnoexcept |
Implements jau::math::geom::AGeom2f.
Definition at line 573 of file geom2f.hpp.
|
inlineoverridevirtualnoexcept |
Implements jau::math::geom::AGeom2f.
Definition at line 581 of file geom2f.hpp.
|
inlinenoexcept |
Definition at line 584 of file geom2f.hpp.
|
inline |
Definition at line 594 of file geom2f.hpp.
|
inlineoverridevirtualnoexcept |
Implements jau::math::geom::Geom2f.
Definition at line 601 of file geom2f.hpp.
|
inlineoverridevirtualnoexcept |
Implements jau::math::geom::Geom2f.
Definition at line 605 of file geom2f.hpp.
|
inlineoverridevirtualnoexcept |
Implements jau::math::geom::Geom2f.
Definition at line 609 of file geom2f.hpp.
|
inlineoverridevirtualnoexcept |
Implements jau::math::geom::Geom2f.
Definition at line 613 of file geom2f.hpp.
|
inlineoverridevirtualnoexcept |
Return whether this object intersects with the given line segment and if intersecting, the crossing point (intersection), the normalized normal of the crossing surface and the reflection out vector.
Implements jau::math::geom::Geom2f.
Definition at line 617 of file geom2f.hpp.
|
inlinenoexcept |
Definition at line 649 of file geom2f.hpp.
|
inlineoverridevirtualnoexcept |
Implements jau::math::geom::Geom2f.
Definition at line 693 of file geom2f.hpp.
Point2f jau::math::geom::Rect2f::p_a |
Unrotated, clockwise (CW):
(a)--—(b)
(c)--—(d) Unrotated top-left
Definition at line 512 of file geom2f.hpp.
Point2f jau::math::geom::Rect2f::p_b |
Unrotated top-right.
Definition at line 514 of file geom2f.hpp.
Point2f jau::math::geom::Rect2f::p_c |
Unrotated bottom-left.
Definition at line 516 of file geom2f.hpp.
Point2f jau::math::geom::Rect2f::p_d |
Unrotated bottom_right.
Definition at line 518 of file geom2f.hpp.
Point2f jau::math::geom::Rect2f::p_center |
Definition at line 519 of file geom2f.hpp.
float jau::math::geom::Rect2f::dir_angle |
direction angle in radians
Definition at line 521 of file geom2f.hpp.