AGX Dynamics  2.37.2.0
QuadricIntersection.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #pragma once
18 
19 #include <agx/agxPhysics_export.h>
20 #include <agxCollide/Quadric.h>
21 
22 #include <agx/StackArray.h>
23 
25 
26 namespace agxCollide {
27 
28 namespace QuadricIntersection {
29 
30 
31  typedef agx::StackArray< agx::Vec2, 2 > Vec2Array2;
32  typedef agx::StackArray< agx::Vec2, 4 > Vec2Array4;
33 
40  AGXPHYSICS_EXPORT bool splitConic( const agx::Matrix3x3& conic, agx::Vec3& line1, agx::Vec3& line2 );
41 
42 
50  AGXPHYSICS_EXPORT bool lineConic( const agx::Matrix3x3& conic, agx::Vec3 line, agx::Vec3& point1, agx::Vec3& point2 );
51 
55  AGXPHYSICS_EXPORT agx::UInt8 intersect( const Quadric2D& qA, const Quadric2D& qC, Vec2Array4& output );
56 
57 
61  AGXPHYSICS_EXPORT agx::Matrix3x3 adjugate( const agx::Matrix3x3& M );
62 
63 
64 
65 }
66 
67 
68 }
69 
71 
This namespace consists of a set of classes for handling geometric intersection tests including boole...
uint8_t UInt8
Definition: Integer.h:38
#define AGXPHYSICS_EXPORT
Templated stack array class.
Definition: StackArray.h:33
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: Object.h:98
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: Object.h:97