KiCad PCB EDA Suite
Loading...
Searching...
No Matches
round_segment_2d.h File Reference
#include "object_2d.h"
#include "../ray.h"
#include "filled_circle_2d.h"
#include <plugins/3dapi/xv3d_types.h>

Go to the source code of this file.

Classes

class  ROUND_SEGMENT_2D
 

Functions

bool Is_segment_a_circle (const SFVEC2F &aStart, const SFVEC2F &aEnd)
 Check if segment start and end is very close to each other.
 

Variables

static const float s_min_dot = ( FLT_EPSILON * 4.0f * FLT_EPSILON * 4.0f )
 

Function Documentation

◆ Is_segment_a_circle()

bool Is_segment_a_circle ( const SFVEC2F aStart,
const SFVEC2F aEnd 
)
inline

Check if segment start and end is very close to each other.

This should used to check if the segment should be converted to a circle instead.

Returns
true is it is better to convert the segment to circle

Definition at line 99 of file round_segment_2d.h.

References s_min_dot.

Referenced by addROUND_SEGMENT_2D().

Variable Documentation

◆ s_min_dot

const float s_min_dot = ( FLT_EPSILON * 4.0f * FLT_EPSILON * 4.0f )
static

Definition at line 90 of file round_segment_2d.h.

Referenced by Is_segment_a_circle().