AngelCAD  1.5-00
Public Member Functions | List of all members
circle Class Reference

circle, centered at origin More...

#include <angelcad.h>

Inheritance diagram for circle:
shape2d shape

Public Member Functions

 circle (const pos2d@ p1, const pos2d@ p2, const pos2d@ p3)
 Construct a circle from 3 points on the circumference. More...
 
 circle (double r)
 Create a circle with a given radius. More...
 
double r () const
 radius of circle More...
 
double radius () const
 radius of circle More...
 
- Public Member Functions inherited from shape2d
shape2dopAdd (shape2d@ b)
 Boolean union operator+ overload. More...
 
shape2dopAnd (shape2d@ b)
 Boolean intersection operator& overload. More...
 
shape2dopMul (tmatrix@ matrix)
 Transform object by matrix multiplication: shape2d@ o2 = T * o1. More...
 
shape2dopSub (shape2d@ b)
 Boolean difference operator- overload. More...
 
- Public Member Functions inherited from shape
boundingboxbox () const
 Return bounding box of object. More...
 
tmatrixtransform () const
 Return transformation matrix of object. More...
 
void write_csg (string path)
 Write object to OpenSCAD .csg file. More...
 
void write_xcsg (string path, double secant_tolerance=- 1.0)
 Write object to .xcsg file for processing by xcsg program. More...
 

Detailed Description

circle, centered at origin

A 2d object defined by its radius. Centered on origin.

Constructor & Destructor Documentation

◆ circle() [1/2]

circle::circle ( const pos2d p1,
const pos2d p2,
const pos2d p3 
)

Construct a circle from 3 points on the circumference.

Parameters
p1pos2d@, 1st point on circle circumference
p2pos2d@, 2nd point on circle circumference
p3pos2d@, 3rd point on circle circumference

◆ circle() [2/2]

circle::circle ( double  r)

Create a circle with a given radius.

Parameters
rdouble, radius of circle

Member Function Documentation

◆ r()

double circle::r ( ) const

radius of circle

Returns
double, radius of circle

◆ radius()

double circle::radius ( ) const

radius of circle

Returns
double, radius of circle

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