CMS 3D CMS Logo

Cone.h
Go to the documentation of this file.
1 #ifndef Geom_Cone_H
2 #define Geom_Cone_H
3 
16 
17 class Cone final : public Surface {
18 public:
19  template <typename... Args>
20  Cone(const PositionType& vert, Geom::Theta<Scalar> angle, Args&&... args)
21  : Surface(std::forward<Args>(args)...), theVertex(vert), theAngle(angle) {}
22 
25 
30  const RotationType& rot,
31  const PositionType& vert,
33  return ConePointer(new Cone(vert, angle, pos, rot));
34  }
35 
36  // -- DEPRECATED CONSTRUCTOR
37 
42  : Surface(pos, rot), theVertex(vert), theAngle(angle) {}
43 
44  // -- Extension of Surface interface for cone
45 
47  GlobalPoint vertex() const { return theVertex; }
48 
51 
52  // -- Implementation of Surface interface
53 
54  Side side(const LocalPoint& p, Scalar tolerance) const override { return side(toGlobal(p), tolerance); }
55  Side side(const GlobalPoint& p, Scalar tolerance) const override;
56 
57  // Tangent plane to surface from global point
59  // Tangent plane to surface from local point
61 
62 private:
65 };
66 
67 #endif
Definition: Cone.h:17
Cone(const PositionType &pos, const RotationType &rot, const PositionType &vert, Geom::Theta< Scalar > angle)
Definition: Cone.h:41
GlobalPoint theVertex
Definition: Cone.h:63
const double tolerance
Geom::Theta< float > openingAngle() const
Angle of the cone.
Definition: Cone.h:50
Geom::Theta< Scalar > theAngle
Definition: Cone.h:64
Cone(const PositionType &vert, Geom::Theta< Scalar > angle, Args &&... args)
Definition: Cone.h:20
ReferenceCountingPointer< Cone > ConstConePointer
Definition: Cone.h:24
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:79
static ConePointer build(const PositionType &pos, const RotationType &rot, const PositionType &vert, Geom::Theta< Scalar > angle)
Definition: Cone.h:29
ReferenceCountingPointer< Cone > ConePointer
Definition: Cone.h:23
Side side(const LocalPoint &p, Scalar tolerance) const override
Definition: Cone.h:54
SurfaceOrientation::Side Side
Definition: Surface.h:38
ConstReferenceCountingPointer< TangentPlane > tangentPlane(const GlobalPoint &) const override
Definition: Cone.cc:8
GlobalPoint vertex() const
Global position of the cone vertex.
Definition: Cone.h:47
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11