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_RealBezierSegment2D_idl__ 24#define __com_sun_star_geometry_RealBezierSegment2D_idl__ 25 26module com { module sun { module star { module geometry { 27 28/** This structure contains the relevant data for a cubic Bezier 29 curve.<p> 30 31 The data is stored real-valued. The last point of the segment is 32 taken from the first point of the following segment, and thus not 33 included herein. That is, when forming a polygon out of cubic 34 Bezier segments, each two consecutive RealBezierSegment2D 35 define the actual curve, with the very last segment providing only 36 the end point of the last curve, and the remaining members 37 ignored.<p> 38 39 @see com::sun::star::rendering::XBezierPolyPolygon2D 40 @since OpenOffice 2.0 41 */ 42published struct RealBezierSegment2D 43{ 44 /// The x coordinate of the start point. 45 double Px; 46 /// The y coordinate of the start point. 47 double Py; 48 49 /// The x coordinate of the first control point. 50 double C1x; 51 /// The y coordinate of the first control point. 52 double C1y; 53 54 /// The x coordinate of the second control point. 55 double C2x; 56 /// The y coordinate of the second control point. 57 double C2y; 58 59}; 60 61}; }; }; }; 62 63#endif 64