class Sp_Segment

The Segment class

Public Fields

[more]Sp_Point* p1
A pointer on the first point
[more]Sp_Point* p2
A pointer on the second point

Public Methods

[more]int IsIn(const Sp_Point &P1) const
Test if the point is belonging to the segment !!
[more]int IsBetween(const Sp_Point &P1) const
Test if the point is between
[more]int intersection(const Sp_Segment &seg, const Sp_Vecteur &normale, Sp_Point &) const
Compute Intersection between two segments
[more]void Print() const
write information
[more]float SameSide(const Sp_Point &p1, const Sp_Point &p2, const Sp_Vecteur &normale) const
Test if the two points are on the same side

Public

[more] The constructors


Documentation

The Segment class
o The constructors

o Sp_Segment()
null constructor

o Sp_Segment(Sp_Point *, Sp_Point *)
constructor with pointers

o Sp_Segment(Sp_Point &, Sp_Point &)
constructor with references

oint IsIn(const Sp_Point &P1) const
Test if the point is belonging to the segment !!! Warning to float precision !!! use rather the IsBetween function

oint IsBetween(const Sp_Point &P1) const
Test if the point is between

oint intersection(const Sp_Segment &seg, const Sp_Vecteur &normale, Sp_Point &) const
Compute Intersection between two segments

ovoid Print() const
write information

ofloat SameSide(const Sp_Point &p1, const Sp_Point &p2, const Sp_Vecteur &normale) const
Test if the two points are on the same side

oSp_Point* p1
A pointer on the first point

oSp_Point* p2
A pointer on the second point


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.