00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef COIN_SBLINE_H
00021
#define COIN_SBLINE_H
00022
00023
#include <stdio.h>
00024
00025
#include <Inventor/SbBasic.h>
00026
#include <Inventor/SbVec3f.h>
00027
00028 class COIN_DLL_API SbLine {
00029
public:
00030 SbLine(
void);
00031 SbLine(
const SbVec3f & origin,
const SbVec3f & point);
00032
void setValue(
const SbVec3f & origin,
const SbVec3f & point);
00033 SbBool getClosestPoints(
const SbLine & line2,
00034
SbVec3f & ptOnThis,
SbVec3f & ptOnLine2)
const;
00035
SbVec3f getClosestPoint(
const SbVec3f & point)
const;
00036
const SbVec3f & getPosition(
void)
const;
00037
const SbVec3f & getDirection(
void)
const;
00038
00039
void print(FILE * file)
const;
00040
00041
private:
00042
SbVec3f pos, dir;
00043 };
00044
00045
#endif // !COIN_SBLINE_H