moreupdates
[synfig.git] / synfig-core / trunk / src / synfig / blinepoint.cpp
1 /* === S Y N F I G ========================================================= */
2 /*!     \file blinepoint.cpp
3 **      \brief Template File
4 **
5 **      $Id: blinepoint.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $
6 **
7 **      \legal
8 **      Copyright (c) 2002 Robert B. Quattlebaum Jr.
9 **
10 **      This software and associated documentation
11 **      are CONFIDENTIAL and PROPRIETARY property of
12 **      the above-mentioned copyright holder.
13 **
14 **      You may not copy, print, publish, or in any
15 **      other way distribute this software without
16 **      a prior written agreement with
17 **      the copyright holder.
18 **      \endlegal
19 */
20 /* ========================================================================= */
21
22 /* === H E A D E R S ======================================================= */
23
24 #ifdef USING_PCH
25 #       include "pch.h"
26 #else
27 #ifdef HAVE_CONFIG_H
28 #       include <config.h>
29 #endif
30
31 #include "blinepoint.h"
32
33 #endif
34
35 /* === U S I N G =========================================================== */
36
37 using namespace std;
38 using namespace synfig;
39
40 /* === M A C R O S ========================================================= */
41
42 /* === G L O B A L S ======================================================= */
43
44 /* === P R O C E D U R E S ================================================= */
45
46 /* === M E T H O D S ======================================================= */
47
48 void
49 synfig::BLinePoint::reverse()
50 {
51         if(split_tangent_)
52         {
53                 std::swap(tangent_[0],tangent_[1]);
54                 tangent_[0]=-tangent_[0];
55                 tangent_[1]=-tangent_[1];
56         }
57         else
58         {
59                 tangent_[0]=-tangent_[0];
60                 tangent_[1]=-tangent_[1];
61         }
62 }