OpenStructure
Public Member Functions | Protected Attributes
Circle2 Class Reference

#include <composite2.hh>

Public Member Functions

 Circle2 ()
 
 Circle2 (const Circle2 &c)
 
 Circle2 (const Vec2 &center, Real radius)
 
void SetCenter (const Vec2 &center)
 
void SetRadius (Real r)
 
Vec2 GetCenter () const
 
Real GetRadius () const
 
Real GetCircumference () const
 
Real GetArea () const
 

Protected Attributes

Vec2 center_
 
Real radius_
 

Detailed Description

Definition at line 141 of file composite2.hh.

Constructor & Destructor Documentation

◆ Circle2() [1/3]

Circle2 ( )

◆ Circle2() [2/3]

Circle2 ( const Circle2 c)

◆ Circle2() [3/3]

Circle2 ( const Vec2 center,
Real  radius 
)

Member Function Documentation

◆ GetArea()

Real GetArea ( ) const

◆ GetCenter()

Vec2 GetCenter ( ) const

◆ GetCircumference()

Real GetCircumference ( ) const

◆ GetRadius()

Real GetRadius ( ) const

◆ SetCenter()

void SetCenter ( const Vec2 center)

◆ SetRadius()

void SetRadius ( Real  r)

Field Documentation

◆ center_

Vec2 center_
protected

Definition at line 154 of file composite2.hh.

◆ radius_

Real radius_
protected

Definition at line 155 of file composite2.hh.


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