#include <geom2f.hpp>
|
| Disk2f (const Point2f &c_, const float r_) |
|
| Disk2f (float x, float y, const float r_) |
|
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 | 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 rad) noexcept override |
|
void | set_center (const Point2f &p) |
|
std::string | toString () const noexcept override |
|
virtual bool | tick (const float dt) noexcept |
|
virtual | ~Geom2f ()=default |
|
Definition at line 453 of file geom2f.hpp.
◆ Disk2f() [1/2]
jau::math::geom::Disk2f::Disk2f |
( |
const Point2f & | c_, |
|
|
const float | r_ ) |
|
inline |
◆ Disk2f() [2/2]
jau::math::geom::Disk2f::Disk2f |
( |
float | x, |
|
|
float | y, |
|
|
const float | r_ ) |
|
inline |
◆ toString()
std::string jau::math::geom::Disk2f::toString |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
◆ set_center()
void jau::math::geom::Disk2f::set_center |
( |
const Point2f & | p | ) |
|
|
inline |
◆ box()
AABBox2f jau::math::geom::Disk2f::box |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
◆ contains()
bool jau::math::geom::Disk2f::contains |
( |
const Point2f & | o | ) |
const |
|
inlineoverridevirtualnoexcept |
◆ intersects() [1/3]
bool jau::math::geom::Disk2f::intersects |
( |
const LineSeg2f & | o | ) |
const |
|
inlineoverridevirtualnoexcept |
◆ intersects() [2/3]
bool jau::math::geom::Disk2f::intersects |
( |
const AABBox2f & | o | ) |
const |
|
inlineoverridevirtualnoexcept |
◆ intersects() [3/3]
bool jau::math::geom::Disk2f::intersects |
( |
const Geom2f & | o | ) |
const |
|
inlineoverridevirtualnoexcept |
◆ intersection()
bool jau::math::geom::Disk2f::intersection |
( |
Vec2f & | reflect_out, |
|
|
Vec2f & | cross_normal, |
|
|
Point2f & | cross_point, |
|
|
const LineSeg2f & | in ) const |
|
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 509 of file geom2f.hpp.
◆ rotate()
void jau::math::geom::Disk2f::rotate |
( |
const float | rad | ) |
|
|
inlineoverridevirtualnoexcept |
◆ move_dir()
void jau::math::geom::Disk2f::move_dir |
( |
const float | d | ) |
|
|
inlineoverridevirtualnoexcept |
◆ move() [1/2]
void jau::math::geom::Disk2f::move |
( |
const Point2f & | d | ) |
|
|
inlineoverridevirtualnoexcept |
◆ move() [2/2]
void jau::math::geom::Disk2f::move |
( |
const float | dx, |
|
|
const float | dy ) |
|
inlineoverridevirtualnoexcept |
◆ center
Point2f jau::math::geom::Disk2f::center |
Imagine a circle ;-)
| |r | | | | | c |
| |
m_center
Definition at line 466 of file geom2f.hpp.
◆ radius
float jau::math::geom::Disk2f::radius |
◆ dir_angle
float jau::math::geom::Disk2f::dir_angle |
direction angle in radians
Definition at line 469 of file geom2f.hpp.
The documentation for this class was generated from the following file: