math/circle.cpp

Go to the documentation of this file.
00001 #include <assert.h>
00002 #include <math.h>
00003 #include "circle.h"
00004 
00005 //=============================================================================
00006 // Constructor
00007 //
00008 // Description: Constructor
00009 //=============================================================================
00010 Circle::Circle()
00011 {
00012 }
00013 
00014 //=============================================================================
00015 // Constructor
00016 //
00017 // Description: Constructor
00018 //=============================================================================
00019 Circle::Circle( const double radius )
00020 :
00021     m_Radius( radius )
00022 {
00023     //nothing
00024 }
00025 
00026 //=============================================================================
00027 // Copy Constructor
00028 //
00029 // Description: Constructor
00030 //=============================================================================
00031 Circle::Circle( const Circle& right ):
00032     m_Radius( right.m_Radius ),
00033     m_Center( right.m_Center )
00034 {
00035 }
00036 
00037 //=============================================================================
00038 // Center
00039 //
00040 // Description: returns the center of this circle
00041 //=============================================================================
00042 const Vector2& Circle::Center() const
00043 {
00044     return m_Center;
00045 }
00046 
00047 //=============================================================================
00048 // Radius
00049 //
00050 // Description: returns the radius of this circle
00051 //=============================================================================
00052 double Circle::Radius() const
00053 {
00054     return m_Radius;
00055 }
00056 
00057 //=============================================================================
00058 // SetCenter
00059 //
00060 // Description: Sets the center of the circle
00061 //=============================================================================
00062 void Circle::SetCenter( const Vector2& center )
00063 {
00064     m_Center = center;
00065 }
00066 
00067 //=============================================================================
00068 // SetRadius
00069 //
00070 // Description: Sets the radius of the circle
00071 //=============================================================================
00072 void Circle::SetRadius( const double radius )
00073 {
00074         m_Radius = radius;
00075 }

Generated on Sat Apr 1 21:30:37 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO