pixled-lib  1.0
Public Member Functions | List of all members
pixled::spiral Class Reference

#include <geometry.h>

Public Member Functions

 spiral (float a, float b, point center)
 
point operator() (angle theta)
 

Detailed Description

Class used to represent an archimedean spiral of equation r = a + b * theta.

Constructor & Destructor Documentation

◆ spiral()

pixled::spiral::spiral ( float  a,
float  b,
point  center 
)
inline

Spiral constructor.

Parameters
aa
bb
centercenter of the spiral

Member Function Documentation

◆ operator()()

point pixled::spiral::operator() ( angle  theta)

Returns the point of the spiral at the specified angle.

Notice that the angle might be greater than 360° to represent spiral loops.

Parameters
thetaangle
Returns
point of the spiral

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