25 GEOMDLLIMPEXP
DSegment1d (
double x0,
double x1);
31 GEOMDLLIMPEXP
void SetStart (
double x);
33 GEOMDLLIMPEXP
void SetEnd (
double x);
36 GEOMDLLIMPEXP
double GetStart ()
const;
38 GEOMDLLIMPEXP
double GetEnd ()
const;
55 GEOMDLLIMPEXP
bool PointToFraction (
double point,
double &fraction)
const;
57 GEOMDLLIMPEXP
double Length ()
const;
59 GEOMDLLIMPEXP
double Delta ()
const;
73 GEOMDLLIMPEXP DSegment1d
Reverse ()
const;
void ReverseInPlace()
reverse the instance in place
double Delta() const
Return signed distance from start to end.
#define END_BENTLEY_GEOMETRY_NAMESPACE
Definition: Bentley.r.h:30
bool IsEqual(DSegment1dCR other) const
Exact equality test.
void SetEnd(double x)
Change end coordinate.
bool IsReversed(DSegment1dCR other) const
Exact equality test for reversed coordinates.
double Length() const
Return absolute length of the segment.
bool PointToFraction(double point, double &fraction) const
Find fractional parameter for specified coordinate.
struct DSegment1d const & DSegment1dCR
Definition: msgeomstructs_typedefs.h:144
double GetEnd() const
Return end coordinate.
double EndPointProduct(double x) const
return (x-x0) * (x-x1). This is negative "inside" the interval
A DSegment1d is an interval [x0,x1] on the real line.
Definition: DSegment1d.h:19
DSegment1d Reverse() const
return reverse of the instance
DSegment1d(double x0, double x1)
Constructor with distinct endpoints.
double GetStart() const
Return start coordinate.
static bool NonZeroDirectedOverlap(DSegment1dCR primary, DSegment1dCR clipper, DSegment1dR result)
Find overlap of primary with clipper, treating single point intersection as empty.
double FractionToPoint(double fraction) const
Return coordinate at fractional parameter from start to end.
struct DSegment1d & DSegment1dR
Definition: msgeomstructs_typedefs.h:144
static bool DirectedOverlap(DSegment1dCR primary, DSegment1dCR clipper, DSegment1dR result)
Find overlap of primary with clipper.
#define BEGIN_BENTLEY_GEOMETRY_NAMESPACE
Definition: Bentley.r.h:29
void SetStart(double x)
Change start coordinate.
DSegment1d BetweenFractions(double f0, double f1) const
Return a segment with endpoints at fractions of input segment.
bool IsStrictInterior(double x) const
Test if the EndPointProduct is negative.