Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
LightWeightRectangle Struct Reference

#include <geometry_primitives.h>

Inheritance diagram for LightWeightRectangle:
Inheritance graph
[legend]

Public Member Functions

double area () const
 
double bot () const
 
Point2D center () const
 
bool contains (const Point2D &p) const
 
bool contains (double x, double y) const
 
auto corners () const
 
double hside_len () const
 
auto intersect (const LightWeightRectangle &that) const
 
bool is_line () const
 
bool is_point () const
 
bool is_square () const
 
double left () const
 
 LightWeightRectangle ()
 
 LightWeightRectangle (double b, double t, double l, double r)
 
 LightWeightRectangle (const Point2D &p)
 
LVRect move_center (const Point2D &new_center) const
 
bool operator== (const LightWeightRectangle &rhs) const
 
auto overlap (const LightWeightRectangle &that) const
 
double right () const
 
auto shrink (double factor) const
 
double side () const
 
auto split4_evenly () const
 
auto split_horz () const
 
auto split_vert () const
 
double top () const
 
double vside_len () const
 

Private Types

using LVRect = LightWeightRectangle
 

Private Member Functions

LightWeightRectangle intersect_internal (const LightWeightRectangle &that, bool reversed=false) const
 

Private Attributes

double _bot
 
double _left
 
double _right
 
double _top
 

Detailed Description

Definition at line 165 of file geometry_primitives.h.

Member Typedef Documentation

Definition at line 167 of file geometry_primitives.h.

Constructor & Destructor Documentation

LightWeightRectangle::LightWeightRectangle ( )
inline

Definition at line 169 of file geometry_primitives.h.

LightWeightRectangle::LightWeightRectangle ( double  b,
double  t,
double  l,
double  r 
)
inline

Definition at line 170 of file geometry_primitives.h.

LightWeightRectangle::LightWeightRectangle ( const Point2D p)
inline

Definition at line 175 of file geometry_primitives.h.

Member Function Documentation

double LightWeightRectangle::area ( ) const
inline

Definition at line 187 of file geometry_primitives.h.

double LightWeightRectangle::bot ( ) const
inline

Definition at line 178 of file geometry_primitives.h.

Point2D LightWeightRectangle::center ( ) const
inline

Definition at line 188 of file geometry_primitives.h.

bool LightWeightRectangle::contains ( const Point2D p) const
inline

Definition at line 246 of file geometry_primitives.h.

bool LightWeightRectangle::contains ( double  x,
double  y 
) const
inline

Definition at line 248 of file geometry_primitives.h.

auto LightWeightRectangle::corners ( ) const
inline

Definition at line 200 of file geometry_primitives.h.

double LightWeightRectangle::hside_len ( ) const
inline

Definition at line 184 of file geometry_primitives.h.

auto LightWeightRectangle::intersect ( const LightWeightRectangle that) const
inline

Definition at line 252 of file geometry_primitives.h.

LightWeightRectangle LightWeightRectangle::intersect_internal ( const LightWeightRectangle that,
bool  reversed = false 
) const
inlineprivate

Definition at line 270 of file geometry_primitives.h.

bool LightWeightRectangle::is_line ( ) const
inline

Definition at line 192 of file geometry_primitives.h.

bool LightWeightRectangle::is_point ( ) const
inline

Definition at line 193 of file geometry_primitives.h.

bool LightWeightRectangle::is_square ( ) const
inline

Definition at line 185 of file geometry_primitives.h.

double LightWeightRectangle::left ( ) const
inline

Definition at line 180 of file geometry_primitives.h.

LVRect LightWeightRectangle::move_center ( const Point2D new_center) const
inline

Definition at line 205 of file geometry_primitives.h.

bool LightWeightRectangle::operator== ( const LightWeightRectangle rhs) const
inline

Definition at line 195 of file geometry_primitives.h.

auto LightWeightRectangle::overlap ( const LightWeightRectangle that) const
inline

Definition at line 256 of file geometry_primitives.h.

double LightWeightRectangle::right ( ) const
inline

Definition at line 181 of file geometry_primitives.h.

auto LightWeightRectangle::shrink ( double  factor) const
inline

Definition at line 211 of file geometry_primitives.h.

double LightWeightRectangle::side ( ) const
inline

Definition at line 186 of file geometry_primitives.h.

auto LightWeightRectangle::split4_evenly ( ) const
inline

Definition at line 236 of file geometry_primitives.h.

auto LightWeightRectangle::split_horz ( ) const
inline

Definition at line 228 of file geometry_primitives.h.

auto LightWeightRectangle::split_vert ( ) const
inline

Definition at line 220 of file geometry_primitives.h.

double LightWeightRectangle::top ( ) const
inline

Definition at line 179 of file geometry_primitives.h.

double LightWeightRectangle::vside_len ( ) const
inline

Definition at line 183 of file geometry_primitives.h.

Member Data Documentation

double LightWeightRectangle::_bot
private

Definition at line 313 of file geometry_primitives.h.

double LightWeightRectangle::_left
private

Definition at line 313 of file geometry_primitives.h.

double LightWeightRectangle::_right
private

Definition at line 313 of file geometry_primitives.h.

double LightWeightRectangle::_top
private

Definition at line 313 of file geometry_primitives.h.


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


slam_constructor
Author(s): JetBrains Research, OSLL team
autogenerated on Mon Jun 10 2019 15:08:26