LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
rcsc::Sector2D Class Reference

2D sector region(OUGI-GATA) class More...

#include <sector_2d.h>

Inheritance diagram for rcsc::Sector2D:
Inheritance graph
[legend]
Collaboration diagram for rcsc::Sector2D:
Collaboration graph
[legend]

Public Member Functions

 Sector2D (const Vector2D &c, const double min_r, const double max_r, const AngleDeg &start, const AngleDeg &end)
 constructor with all variables More...
 
const Sector2Dassign (const Vector2D &c, const double min_r, const double max_r, const AngleDeg &start, const AngleDeg &end)
 assign new value More...
 
const Vector2Dcenter () const
 get the center point More...
 
double radiusMin () const
 get the small side radius More...
 
double radiusMax () const
 get the big side radius More...
 
const AngleDegangleLeftStart () const
 get the left start angle More...
 
const AngleDegangleRightEnd () const
 get the right end angle More...
 
virtual double area () const
 calculate the area of this region More...
 
virtual bool contains (const Vector2D &point) const
 check if point is within this region More...
 
double getCircumferenceMin () const
 get smaller side circumference(ENSYUU NO NAGASA) More...
 
double getCircumferenceMax () const
 get bigger side circumference(ENSYUU NO NAGASA) More...
 
- Public Member Functions inherited from rcsc::Region2D
virtual ~Region2D ()
 virtual destructor.
 
virtual double area () const =0
 get the area of this region More...
 
virtual bool contains (const Vector2D &point) const =0
 check if this region contains 'point'. More...
 

Additional Inherited Members

- Protected Member Functions inherited from rcsc::Region2D
 Region2D ()
 accessible only from derived classes
 

Detailed Description

2D sector region(OUGI-GATA) class

Constructor & Destructor Documentation

◆ Sector2D()

rcsc::Sector2D::Sector2D ( const Vector2D c,
const double  min_r,
const double  max_r,
const AngleDeg start,
const AngleDeg end 
)

constructor with all variables

Parameters
ccenter point
min_rsmaller radius
max_rbigger radius
startstart angle(turn clockwise)
endend angle(turn clockwise)

Member Function Documentation

◆ angleLeftStart()

const AngleDeg & rcsc::Sector2D::angleLeftStart ( ) const
inline

get the left start angle

Returns
const reference to the member variable

◆ angleRightEnd()

const AngleDeg & rcsc::Sector2D::angleRightEnd ( ) const
inline

get the right end angle

Returns
const reference to the member variable

◆ area()

virtual double rcsc::Sector2D::area ( ) const
virtual

calculate the area of this region

Returns
the value of area

Implements rcsc::Region2D.

◆ assign()

const Sector2D & rcsc::Sector2D::assign ( const Vector2D c,
const double  min_r,
const double  max_r,
const AngleDeg start,
const AngleDeg end 
)

assign new value

Parameters
ccenter point
min_rsmaller radius
max_rbigger radius
startstart angle(turn clockwise)
endend angle(turn clockwise)

◆ center()

const Vector2D & rcsc::Sector2D::center ( ) const
inline

get the center point

Returns
const reference to the member variable

◆ contains()

virtual bool rcsc::Sector2D::contains ( const Vector2D point) const
inlinevirtual

check if point is within this region

Parameters
pointconsidered point
Returns
true or false

Implements rcsc::Region2D.

◆ getCircumferenceMax()

double rcsc::Sector2D::getCircumferenceMax ( ) const
inline

get bigger side circumference(ENSYUU NO NAGASA)

Returns
the length of circumference

◆ getCircumferenceMin()

double rcsc::Sector2D::getCircumferenceMin ( ) const
inline

get smaller side circumference(ENSYUU NO NAGASA)

Returns
the length of circumference

◆ radiusMax()

double rcsc::Sector2D::radiusMax ( ) const
inline

get the big side radius

Returns
const reference to the member variable

◆ radiusMin()

double rcsc::Sector2D::radiusMin ( ) const
inline

get the small side radius

Returns
const reference to the member variable

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