JG ROOT Tools libraries  version 5.0 - august 2014
RGeometry.cpp File Reference
#include "RGeometry.hh"

Functions

TVector3 RNormalUx (const TVector3 &v)
 
TVector3 RNormalUy (const TVector3 &v)
 
void RNormalVectors (const TVector3 &v, TVector3 &ux, TVector3 &uy)
 
TVector3 RGetVector (double theta, double phi)
 
TVector3 RNormalUx (double theta, double phi)
 
TVector3 RNormalUy (double theta, double phi)
 
void RNormalVectors (double theta, double phi, TVector3 &ux, TVector3 &uy)
 
TPolyLine3D * RLine3D (const TVector3 &p1, const TVector3 &p2)
 

Detailed Description

Source file file for functions various geometry functions.

Function Documentation

TVector3 RNormalUx ( const TVector3 &  v)

Return a unit vector normal to the argument direction. Functions RNormalUx and RNormalUy give orthogonal vectors.

Parameters
vdirection vector

Referenced by RHoughTransform3D::ComputeTransformXY(), RSphereTesselation::GetVectUx(), and RNormalUx().

TVector3 RNormalUy ( const TVector3 &  v)

Return a unit vector normal to the argument direction. Functions RNormalUx and RNormalUy give orthogonal vectors.

Parameters
vdirection vector

Referenced by RHoughTransform3D::ComputeTransformXY(), RSphereTesselation::GetVectUy(), and RNormalUy().

void RNormalVectors ( const TVector3 &  v,
TVector3 &  ux,
TVector3 &  uy 
)

Returns 2 unit vector normal to the argument direction.

Parameters
vdirection vector
uxfirst returned vector
uysecond returned vector

Referenced by RHoughTransform3D::AnalyseTransformLocal(), RHoughTransform3D::CreateLine3D(), RNormalVectors(), and RHoughTransform3D::SuppressSourceLine().

TVector3 RGetVector ( double  theta,
double  phi 
)

Return a unit vector normal to the argument direction (angles). Functions RNormalUx and RNormalUy give orthogonal vectors.

Parameters
thetaangle from vertical axis (radian)
phiangle of X-Y projection (radian)

Referenced by RHoughTransform3D::SuppressSourceLine().

TVector3 RNormalUx ( double  theta,
double  phi 
)

Return a unit vector normal to the argument direction (angles). Functions RNormalUx and RNormalUy give orthogonal vectors.

Parameters
thetaangle from vertical axis (radian)
phiangle of X-Y projection (radian)

References RNormalUx().

TVector3 RNormalUy ( double  theta,
double  phi 
)

Return a unit vector normal to the argument direction (angles). Functions RNormalUx and RNormalUy give orthogonal vectors.

Parameters
thetaangle from vertical axis (radian)
phiangle of X-Y projection (radian)

References RNormalUy().

void RNormalVectors ( double  theta,
double  phi,
TVector3 &  ux,
TVector3 &  uy 
)

Returns 2 unit vector normal to the argument direction (angles).

Parameters
thetaangle from vertical axis (radian)
phiangle of X-Y projection (radian)
uxfirst returned vector
uysecond returned vector

References RNormalVectors().

TPolyLine3D* RLine3D ( const TVector3 &  p1,
const TVector3 &  p2 
)

Create a 3D line from 2 vectors.

Parameters
p1first vector
p2second vector

Referenced by RHoughTransform3D::CreateLine3D().