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 360 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 64 of file segment_test.cc.

References Aleph::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 70 of file segment_test.cc.

Member Data Documentation

◆ diagonal

Segment SegmentTest::diagonal {origin, p3}
protected

Definition at line 370 of file point_test.cc.

◆ horizontal

Segment SegmentTest::horizontal {origin, p1}
protected

Definition at line 368 of file point_test.cc.

◆ origin

Point SegmentTest::origin {0, 0}
protected

Definition at line 363 of file point_test.cc.

◆ p1

Point SegmentTest::p1 {1, 0}
protected

Definition at line 364 of file point_test.cc.

◆ p2

Point SegmentTest::p2 {0, 1}
protected

Definition at line 365 of file point_test.cc.

◆ p3

Point SegmentTest::p3 {1, 1}
protected

Definition at line 366 of file point_test.cc.

◆ p4

Point SegmentTest::p4 {5, 5}
protected

Definition at line 61 of file segment_test.cc.

◆ vertical

Segment SegmentTest::vertical {origin, p2}
protected

Definition at line 369 of file point_test.cc.


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