source: trunk/source/geometry/solids/specific/include/G4TessellatedGeometryAlgorithms.icc @ 1202

Last change on this file since 1202 was 1058, checked in by garnier, 15 years ago

file release beta

File size: 2.9 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration and of QinetiQ Ltd,   *
20// * subject to DEFCON 705 IPR conditions.                            *
21// * By using,  copying,  modifying or  distributing the software (or *
22// * any work based  on the software)  you  agree  to acknowledge its *
23// * use  in  resulting  scientific  publications,  and indicate your *
24// * acceptance of all terms of the Geant4 Software license.          *
25// ********************************************************************
26//
27// $Id:
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
31//
32// MODULE:              G4TessellatedGeometryAlgorithms.icc
33//
34// Date:                07/08/2005
35// Author:              Rickard Holmberg & Pete Truscott
36// Organisation:        QinetiQ Ltd, UK (PT)
37// Customer:            ESA-ESTEC / TEC-EES
38// Contract:           
39//
40// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
41//
42// CHANGE HISTORY
43// --------------
44//
45// 07 August 2007, P R Truscott, QinetiQ Ltd, UK - Created, with member
46//                 functions based on the work of Rickard Holmberg.
47//
48// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
49//
50
51///////////////////////////////////////////////////////////////////////////////
52//
53// CrossProduct
54//
55// This is just a ficticious "cross-product" function for two 2D vectors...
56// "ficticious" because such an operation is not relevant to 2D space compared
57// with 3D space.
58//
59inline G4double
60G4TessellatedGeometryAlgorithms::cross(const G4TwoVector v1,
61                                       const G4TwoVector v2) const
62{
63  return v1.x()*v2.y() - v1.y()*v2.x();
64}
Note: See TracBrowser for help on using the repository browser.