AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
QuadricIntersection.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. 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#pragma once
18
20#include <agxCollide/Quadric.h>
21
22#include <agx/StackArray.h>
23
25
26namespace agxCollide {
27
28namespace 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
62
63
64
65}
66
67
68}
69
71
#define AGXPHYSICS_EXPORT
Templated stack array class.
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition macros.h:97
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition macros.h:96
This namespace consists of a set of classes for handling geometric intersection tests including boole...
uint8_t UInt8
Definition Integer.h:30