Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
SegmentTest Class Reference
Inheritance diagram for SegmentTest:
[legend]
Collaboration diagram for SegmentTest:
[legend]

Static Protected Member Functions

static bool near_equal (const Geom_Number &a, const Geom_Number &b, double epsilon=1e-9)
 
static bool near_equal (double a, double b, double epsilon=1e-9)
 

Protected Attributes

Point origin {0, 0}
 
Point p1 {1, 0}
 
Point p2 {0, 1}
 
Point p3 {1, 1}
 
Segment horizontal {origin, p1}
 
Segment vertical {origin, p2}
 
Segment diagonal {origin, p3}
 
Point p4 {5, 5}
 

Detailed Description

Definition at line 325 of file point_test.cc.

Member Function Documentation

◆ near_equal() [1/2]

static bool SegmentTest::near_equal ( const Geom_Number a,
const Geom_Number b,
double  epsilon = 1e-9 
)
inlinestaticprotected

Definition at line 63 of file segment_test.cc.

References geom_number_to_double().

◆ near_equal() [2/2]

static bool SegmentTest::near_equal ( double  a,
double  b,
double  epsilon = 1e-9 
)
inlinestaticprotected

Definition at line 69 of file segment_test.cc.

Member Data Documentation

◆ diagonal

Segment SegmentTest::diagonal {origin, p3}
protected

Definition at line 335 of file point_test.cc.

◆ horizontal

Segment SegmentTest::horizontal {origin, p1}
protected

Definition at line 333 of file point_test.cc.

◆ origin

Point SegmentTest::origin {0, 0}
protected

Definition at line 328 of file point_test.cc.

◆ p1

Point SegmentTest::p1 {1, 0}
protected

Definition at line 329 of file point_test.cc.

◆ p2

Point SegmentTest::p2 {0, 1}
protected

Definition at line 330 of file point_test.cc.

◆ p3

Point SegmentTest::p3 {1, 1}
protected

Definition at line 331 of file point_test.cc.

◆ p4

Point SegmentTest::p4 {5, 5}
protected

Definition at line 60 of file segment_test.cc.

◆ vertical

Segment SegmentTest::vertical {origin, p2}
protected

Definition at line 334 of file point_test.cc.


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