Source code: com/xerox/VTM/glyphs/ProjCbCurve.java
1 /* FILE: ProjCbCurve.java
2 * DATE OF CREATION: Oct 03 2001
3 * AUTHOR : Emmanuel Pietriga (emmanuel.pietriga@xrce.xerox.com)
4 * MODIF: Thu Jan 24 10:29:57 2002 by Emmanuel Pietriga
5 * Copyright (c) Xerox Corporation, XRCE/Contextual Computing, 2002. All Rights Reserved
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * For full terms see the file COPYING.
18 */
19
20 package com.xerox.VTM.glyphs;
21 import java.awt.geom.*;
22
23 /**project coordinates of a quadratic curve
24 * @author Emmanuel Pietriga
25 */
26
27 class ProjCbCurve extends ProjectedCoords {
28
29
30 /**size in camera space*/
31 int cs;
32 /**curve*/
33 CubicCurve2D.Double quad=new CubicCurve2D.Double();
34 /**start point*/
35 Point2D.Double start=new Point2D.Double();
36 /**end point*/
37 Point2D.Double end=new Point2D.Double();
38 /**control point 1 (controls start point tangent vector)*/
39 Point2D.Double ctrlStart=new Point2D.Double();
40 /**control point 2 (controls end point tangent vector)*/
41 Point2D.Double ctrlEnd=new Point2D.Double();
42
43 }