SbDPLine.h Source File

| http://www.sim.no/ http://www.coin3d.org/

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

SbDPLine.h
1 #ifndef COIN_SBDPLINE_H
2 #define COIN_SBDPLINE_H
3
4 /**************************************************************************\
5 *
6 * This file is part of the Coin 3D visualization library.
7 * Copyright (C) by Kongsberg Oil & Gas Technologies.
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * ("GPL") version 2 as published by the Free Software Foundation.
12 * See the file LICENSE.GPL at the root directory of this source
13 * distribution for additional information about the GNU GPL.
14 *
15 * For using Coin with software that can not be combined with the GNU
16 * GPL, and for taking advantage of the additional benefits of our
17 * support services, please contact Kongsberg Oil & Gas Technologies
18 * about acquiring a Coin Professional Edition License.
19 *
20 * See http://www.coin3d.org/ for more information.
21 *
22 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
23 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24 *
25 \**************************************************************************/
26
27 #include <stdio.h>
28
29 #include <Inventor/SbBasic.h>
30 #include <Inventor/SbVec3d.h>
31
32 class COIN_DLL_API SbDPLine {
33 public:
34 SbDPLine(void);
35 SbDPLine(const SbVec3d& p0, const SbVec3d& p1);
36 void setValue(const SbVec3d& p0, const SbVec3d& p1);
37 SbBool getClosestPoints(const SbDPLine& line2,
38 SbVec3d& ptOnThis, SbVec3d& ptOnLine2) const;
39 SbVec3d getClosestPoint(const SbVec3d& point) const;
40 const SbVec3d& getPosition(void) const;
41 const SbVec3d& getDirection(void) const;
42
43 void print(FILE * file) const;
44
45 private:
46 SbVec3d pos, dir;
47 };
48
49 #endif // !COIN_SBDPLINE_H
SbDPLine
The SbDPLine class represents a line in 3D space.SbDPLine is used by many other classes in Coin...
Definition: SbDPLine.h:32
SbVec3d
The SbVec3d class is a 3 dimensional vector with double precision floating point coordinates.This vector class provides storage for a 3 dimensional double precision floating point vector aswell as simple floating point arithmetic operations.
Definition: SbVec3d.h:39

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.