Beispiel #1
0
void R3Segment::
Reposition(int k, const R3Point& point)
{
  // Set one endpoint of segment
  if (k == 0) ray = R3Ray(point, end);
  else { end = point; ray.Align(end - ray.Start()); }
  length = R3Distance(Start(), End());
}
Beispiel #2
0
void R3Segment::
Reset(const R3Point& point1, const R3Point& point2)
{
  // Reset segment
  ray = R3Ray(point1, point2);
  end = point2;
  length = R3Distance(point1, point2);
}
Beispiel #3
0
void R3Span::
Reset(const R3Point& point1, const R3Point& point2)
{
    // Reset span
    ray = R3Ray(point1, point2);
    end = point2;
    length = R3Distance(point1, point2);
}