AGX Dynamics 2.42.3.0
Loading...
Searching...
No Matches
agx/Line.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#ifndef AGX_LINE_H
18#define AGX_LINE_H
19
20#include <agx/Vec3.h>
21
22namespace agx
23{
24 template <typename T>
25 class LineT
26 {
27 public:
28 typedef T Type;
29
30 public:
31 T p1;
32 T p2;
33
34 public:
35 inline LineT() { }
36 inline LineT(const T& _p1, const T& _p2) : p1(_p1), p2(_p2) {}
37 };
38
42
43
44 template <typename T>
45 std::ostream& operator<<(std::ostream& output, const LineT<T>& line)
46 {
47 output << line.p1 << "->" << line.p2;
48 return output;
49 }
50}
51
53AGX_TYPE_BINDING(agx::Line64, "Line")
54
55#endif
56
57
#define AGX_TYPE_BINDING(_Type, _Name)
Definition: Type.h:179
LineT(const T &_p1, const T &_p2)
Definition: agx/Line.h:36
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
LineT< Vec3f > Line32
Definition: agx/Line.h:40
std::ostream & operator<<(std::ostream &os, const agx::AddedMassInteraction::Matrix6x6 &m)
LineT< Vec3d > Line64
Definition: agx/Line.h:41
LineT< Vec3 > Line
Definition: agx/Line.h:39