KiCad PCB EDA Suite
Loading...
Searching...
No Matches
TARGET3001::ARC Struct Reference

Stroked arc or circle. The base position is the start point. More...

#include <target3001_parser.h>

Public Member Functions

double Sweep () const
 Counter-clockwise sweep in (0, 360]; equal angles give a full circle.
 

Public Attributes

int32_t endX = 0
 
int32_t endY = 0
 
int32_t centerX = 0
 
int32_t centerY = 0
 
int32_t radius = 0
 
int32_t width = 0
 
int32_t clearance = 0
 
float startAngle = 0.0f
 degrees, counter-clockwise from +X
 
float endAngle = 0.0f
 

Detailed Description

Stroked arc or circle. The base position is the start point.

Definition at line 189 of file target3001_parser.h.

Member Function Documentation

◆ Sweep()

double TARGET3001::ARC::Sweep ( ) const
inline

Counter-clockwise sweep in (0, 360]; equal angles give a full circle.

Definition at line 202 of file target3001_parser.h.

References endAngle, startAngle, and sweep().

Referenced by TARGET3001_PCB_BUILDER::addShape(), TARGET3001_PCB_BUILDER::elementOutline(), TARGET3001_SCH_BUILDER::makeGraphic(), and sweep().

Member Data Documentation

◆ centerX

int32_t TARGET3001::ARC::centerX = 0

◆ centerY

int32_t TARGET3001::ARC::centerY = 0

◆ clearance

int32_t TARGET3001::ARC::clearance = 0

◆ endAngle

float TARGET3001::ARC::endAngle = 0.0f

Definition at line 199 of file target3001_parser.h.

Referenced by Sweep(), and sweep().

◆ endX

int32_t TARGET3001::ARC::endX = 0

Definition at line 191 of file target3001_parser.h.

◆ endY

int32_t TARGET3001::ARC::endY = 0

Definition at line 192 of file target3001_parser.h.

◆ radius

int32_t TARGET3001::ARC::radius = 0

◆ startAngle

float TARGET3001::ARC::startAngle = 0.0f

◆ width

int32_t TARGET3001::ARC::width = 0

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