Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | List of all members
jau::math::geom::Geom2f Class Referenceabstract

Geometric object. More...

#include <geom2f.hpp>

Inheritance diagram for jau::math::geom::Geom2f:
Collaboration diagram for jau::math::geom::Geom2f:

Public Member Functions

virtual ~Geom2f ()=default
 
virtual AABBox2f box () const noexcept=0
 
virtual bool contains (const Point2f &o) const noexcept=0
 
virtual bool intersection (Vec2f &reflect_out, Vec2f &cross_normal, Point2f &cross_point, const LineSeg2f &in) const noexcept=0
 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. More...
 
virtual bool intersects (const AABBox2f &box) const noexcept=0
 
virtual bool intersects (const Geom2f &o) const noexcept=0
 
virtual bool intersects (const LineSeg2f &o) const noexcept=0
 
virtual std::string toString () const noexcept=0
 

Detailed Description

Geometric object.

Definition at line 75 of file geom2f.hpp.

Constructor & Destructor Documentation

◆ ~Geom2f()

virtual jau::math::geom::Geom2f::~Geom2f ( )
virtualdefault

Member Function Documentation

◆ box()

virtual AABBox2f jau::math::geom::Geom2f::box ( ) const
pure virtualnoexcept

Implemented in jau::math::geom::LineSeg2f, jau::math::geom::Disk2f, jau::math::geom::Rect2f, and jau::math::geom::LineStrip2f.

Here is the caller graph for this function:

◆ contains()

virtual bool jau::math::geom::Geom2f::contains ( const Point2f o) const
pure virtualnoexcept

◆ intersects() [1/3]

virtual bool jau::math::geom::Geom2f::intersects ( const LineSeg2f o) const
pure virtualnoexcept

Implemented in jau::math::geom::LineSeg2f, jau::math::geom::Disk2f, jau::math::geom::Rect2f, and jau::math::geom::LineStrip2f.

Here is the caller graph for this function:

◆ intersects() [2/3]

virtual bool jau::math::geom::Geom2f::intersects ( const AABBox2f box) const
pure virtualnoexcept

◆ intersects() [3/3]

virtual bool jau::math::geom::Geom2f::intersects ( const Geom2f o) const
pure virtualnoexcept

◆ intersection()

virtual bool jau::math::geom::Geom2f::intersection ( Vec2f reflect_out,
Vec2f cross_normal,
Point2f cross_point,
const LineSeg2f in 
) const
pure virtualnoexcept

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.

Implemented in jau::math::geom::LineSeg2f, jau::math::geom::Disk2f, jau::math::geom::Rect2f, and jau::math::geom::LineStrip2f.

◆ toString()

virtual std::string jau::math::geom::Geom2f::toString ( ) const
pure virtualnoexcept

Implemented in jau::math::geom::LineSeg2f, jau::math::geom::Disk2f, jau::math::geom::Rect2f, and jau::math::geom::LineStrip2f.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: