Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

Box3D::Line::Line ( Geom::Point const &  start,
Geom::Point const &  vec,
bool  is_endpoint = true 
)

Draw a line beginning at 'start'. If is_endpoint is true, use 'vec' as the endpoint of the segment. Otherwise interpret it as the direction of the line. FIXME: Think of a better way to distinguish between the two constructors of lines.

Definition at line 29 of file line-geometry.cpp.

References Geom::Point::ccw().

                                                                         {
    pt = start;
    if (is_endpoint)
        v_dir = vec - start;
    else
      v_dir = vec;
    normal = v_dir.ccw();
    d0 = Geom::dot(normal, pt);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index