38 fA(a), fB(b), fC(c), fD(d)
77 if ( s == 0) {
fD = 0;
return; }
Class describing a geometrical plane in 3 dimensions.
static double p3(double t, double a, double b, double c, double d)
Namespace for new ROOT classes and functions.
Plane3D()
default constructor create plane z = 0
Scalar Y() const
Cartesian Y, converting if necessary from internal coordinate system.
PositionVector3D< Cartesian3D< double >, DefaultCoordinateSystemTag > XYZPoint
3D Point based on the cartesian coordinates x,y,z in double precision
Class describing a generic position vector (point) in 3 dimensions.
Scalar Z() const
Cartesian Z, converting if necessary from internal coordinate system.
Scalar Dot(const DisplacementVector3D< OtherCoords, Tag > &v) const
Return the scalar (dot) product of two displacement vectors.
Scalar Y() const
Cartesian Y, converting if necessary from internal coordinate system.
std::ostream & operator<<(std::ostream &os, const AxisAngle &a)
Stream Output and Input.
Vector Normal() const
Return normal vector to the plane as Cartesian DisplacementVector.
Scalar X() const
Cartesian X, converting if necessary from internal coordinate system.
static double p2(double t, double a, double b, double c)
Point ProjectOntoPlane(const Point &p) const
Return the projection of a Cartesian point to a plane.
Scalar HesseDistance() const
Return the Hesse Distance (distance from the origin) of the plane or the d coefficient expressed in n...
static double p1(double t, double a, double b)
SVector< T, 3 > Cross(const SVector< T, 3 > &lhs, const SVector< T, 3 > &rhs)
Vector Cross Product (only for 3-dim vectors) .
void BuildFromVecAndPoint(const Vector &n, const Point &p)
void Normalize()
Normalize the normal (a,b,c) plane components.
Scalar Z() const
Cartesian Z, converting if necessary from internal coordinate system.
DisplacementVector3D< Cartesian3D< double >, DefaultCoordinateSystemTag > XYZVector
3D Vector based on the cartesian coordinates x,y,z in double precision
Namespace for new Math classes and functions.
void BuildFrom3Points(const Point &p1, const Point &p2, const Point &p3)
Scalar X() const
Cartesian X, converting if necessary from internal coordinate system.
Scalar Distance(const Point &p) const
Return the signed distance to a Point.