clan::Circlex< Type > Class Template Reference

Circle. More...

#include <circle.h>

Public Member Functions

 Circlex ()
 
 Circlex (const Circlex< Type > &copy)=default
 
 Circlex (const Vec2< Type > &p, Type radius)
 
 Circlex (Type x, Type y, Type radius)
 
bool is_inside (const Vec2< Type > &point)
 
bool operator!= (const Circlex< Type > &circle) const
 
Circlex< Type > & operator= (const Circlex< Type > &copy)=default
 
bool operator== (const Circlex< Type > &circle) const
 

Public Attributes

Vec2< Type > position
 Circle center point.
 
Type radius
 Circle radius.
 

Detailed Description

template<typename Type>
class clan::Circlex< Type >

Circle.

These circle templates are defined for: int (Circle), float (Circlef), double (Circled)

Constructor & Destructor Documentation

◆ Circlex() [1/4]

template<typename Type>
clan::Circlex< Type >::Circlex ( Type x,
Type y,
Type radius )
inline

References position, radius, clan::x, and clan::y.

Referenced by Circlex(), operator!=(), operator=(), and operator==().

◆ Circlex() [2/4]

template<typename Type>
clan::Circlex< Type >::Circlex ( const Vec2< Type > & p,
Type radius )
inline

References clan::p, position, and radius.

◆ Circlex() [3/4]

template<typename Type>
clan::Circlex< Type >::Circlex ( )
inline

References position, and radius.

◆ Circlex() [4/4]

template<typename Type>
clan::Circlex< Type >::Circlex ( const Circlex< Type > & copy)
default

References Circlex().

Member Function Documentation

◆ is_inside()

template<typename Type>
bool clan::Circlex< Type >::is_inside ( const Vec2< Type > & point)
inline

References clan::point, position, and radius.

◆ operator!=()

template<typename Type>
bool clan::Circlex< Type >::operator!= ( const Circlex< Type > & circle) const
inline

References Circlex(), position, and radius.

◆ operator=()

template<typename Type>
Circlex< Type > & clan::Circlex< Type >::operator= ( const Circlex< Type > & copy)
default

References Circlex().

◆ operator==()

template<typename Type>
bool clan::Circlex< Type >::operator== ( const Circlex< Type > & circle) const
inline

References Circlex(), position, and radius.

Member Data Documentation

◆ position

template<typename Type>
Vec2<Type> clan::Circlex< Type >::position

Circle center point.

Referenced by Circlex(), Circlex(), Circlex(), is_inside(), operator!=(), and operator==().

◆ radius

template<typename Type>
Type clan::Circlex< Type >::radius

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