1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_geometry_XMapping2D_idl__
24#define __com_sun_star_geometry_XMapping2D_idl__
25
26#ifndef __com_sun_star_uno_XInterface_idl__
27#include <com/sun/star/uno/XInterface.idl>
28#endif
29#ifndef __com_sun_star_geometry_RealPoint2D_idl__
30#include <com/sun/star/geometry/RealPoint2D.idl>
31#endif
32
33module com {  module sun {  module star {  module geometry {
34
35/** Interface defining an arbitrary bijective mapping from R^2 to R^2.<p>
36
37    This interface provides methods to define an arbitrary bijective
38    mapping from R^2 to R^2, i.e. from the two-dimensional space of
39    real numbers onto itself, as is representable by the
40    <type>double</type> floating point type. The mapping must be
41    bijective, i.e. map a pair of real numbers to exactly one other
42    pair of real numbers an vice versa, to facilitate a working
43    inverse. Bijectiveness also implies completeness, i.e. for every
44    pair of real numbers there must be another pair that is mapped
45    upon them.<p>
46
47    @since OpenOffice 2.0
48 */
49published interface XMapping2D : ::com::sun::star::uno::XInterface
50{
51    /** Forward 2D mapping function
52     */
53    RealPoint2D     map( [in] RealPoint2D aPoint );
54
55    //-------------------------------------------------------------------------
56
57    /** Inverse 2D mapping function.<p>
58
59        The following invariant must hold:
60        <code>map(mapInverse(p))=p</code>. This effectively rules out
61        non-bijective mappings.<p>
62     */
63    RealPoint2D     mapInverse( [in] RealPoint2D aPoint );
64};
65
66}; }; }; };
67
68#endif
69