Snippets tagged triple

  • Distance between two 3D segments

    The function segmentSegment takes 2 segments (starting and ending points) and computes the shortest distance between them. The function returns a starting and ending point of the shortest segment between the two segments. The function uses a triple type but can be easily rewritten to work with any other type (vector etc).

    30 people like this

    Posted: 13 years ago by Oldrich Svec