1 /* 2 * $Id$ 3 * 4 * Copyright (c) 2010, Novartis Institutes for BioMedical Research Inc. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are 9 * met: 10 * 11 * * Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * * Redistributions in binary form must reproduce the above 14 * copyright notice, this list of conditions and the following 15 * disclaimer in the documentation and/or other materials provided 16 * with the distribution. 17 * * Neither the name of Novartis Institutes for BioMedical Research Inc. 18 * nor the names of its contributors may be used to endorse or promote 19 * products derived from this software without specific prior written permission. 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34 %typemap(javaimports) RDGeom::Point3D " 35 /** Class representing 3D point with x, y and z coordinates. */" 36 37 %javamethodmodifiers RDGeom::Point3D::angleTo ( const Point3D & other ) const " 38 /** 39 <p> 40 determines the angle between a vector to this point from the origin and a vector to the other point. 41 <p> 42 The angle is unsigned: the results of this call will always be between 0 and M_PI 43 */ 44 public"; 45 46 %javamethodmodifiers RDGeom::Point3D::crossProduct ( const Point3D & other ) const " 47 /** 48 <p> 49 Cross product of this point with the another point. 50 <p> 51 The order is important here The result is 'this' cross with 'other' not (other x this) 52 */ 53 public"; 54 55 %javamethodmodifiers RDGeom::Point3D::directionVector ( const Point3D & other ) const " 56 /** 57 <p> 58 <p> 59 @return 60 a normalized direction vector from this point to another. 61 . 62 */ 63 public"; 64 65 %javamethodmodifiers RDGeom::Point3D::getPerpendicular ( ) const " 66 /** 67 <p> 68 Get a unit perpendicular from this point (treating it as a vector): 69 */ 70 public"; 71 72 %javamethodmodifiers RDGeom::Point3D::signedAngleTo ( const Point3D & other ) const " 73 /** 74 <p> 75 determines the signed angle between a vector to this point from the origin and a vector to the other point. 76 <p> 77 The results of this call will be between 0 and M_2_PI 78 <p> 79 80 */ 81 public"; 82 83