corrade-vassal – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | vero | 1 | /* |
2 | * CVS identifier: |
||
3 | * |
||
4 | * $Id: Coord.java,v 1.14 2002/04/30 13:18:24 grosbois Exp $ |
||
5 | * |
||
6 | * Class: Coord |
||
7 | * |
||
8 | * Description: Class for storage of 2-D coordinates |
||
9 | * |
||
10 | * |
||
11 | * |
||
12 | * COPYRIGHT: |
||
13 | * |
||
14 | * This software module was originally developed by Raphaël Grosbois and |
||
15 | * Diego Santa Cruz (Swiss Federal Institute of Technology-EPFL); Joel |
||
16 | * Askelöf (Ericsson Radio Systems AB); and Bertrand Berthelot, David |
||
17 | * Bouchard, Félix Henry, Gerard Mozelle and Patrice Onno (Canon Research |
||
18 | * Centre France S.A) in the course of development of the JPEG2000 |
||
19 | * standard as specified by ISO/IEC 15444 (JPEG 2000 Standard). This |
||
20 | * software module is an implementation of a part of the JPEG 2000 |
||
21 | * Standard. Swiss Federal Institute of Technology-EPFL, Ericsson Radio |
||
22 | * Systems AB and Canon Research Centre France S.A (collectively JJ2000 |
||
23 | * Partners) agree not to assert against ISO/IEC and users of the JPEG |
||
24 | * 2000 Standard (Users) any of their rights under the copyright, not |
||
25 | * including other intellectual property rights, for this software module |
||
26 | * with respect to the usage by ISO/IEC and Users of this software module |
||
27 | * or modifications thereof for use in hardware or software products |
||
28 | * claiming conformance to the JPEG 2000 Standard. Those intending to use |
||
29 | * this software module in hardware or software products are advised that |
||
30 | * their use may infringe existing patents. The original developers of |
||
31 | * this software module, JJ2000 Partners and ISO/IEC assume no liability |
||
32 | * for use of this software module or modifications thereof. No license |
||
33 | * or right to this software module is granted for non JPEG 2000 Standard |
||
34 | * conforming products. JJ2000 Partners have full right to use this |
||
35 | * software module for his/her own purpose, assign or donate this |
||
36 | * software module to any third party and to inhibit third parties from |
||
37 | * using this software module for non JPEG 2000 Standard conforming |
||
38 | * products. This copyright notice must be included in all copies or |
||
39 | * derivative works of this software module. |
||
40 | * |
||
41 | * Copyright (c) 1999/2000 JJ2000 Partners. |
||
42 | * */ |
||
43 | using System; |
||
44 | namespace CSJ2K.j2k.image |
||
45 | { |
||
46 | |||
47 | /// <summary> This class represents 2-D coordinates. |
||
48 | /// |
||
49 | /// </summary> |
||
50 | public class Coord |
||
51 | { |
||
52 | /// <summary>The horizontal coordinate </summary> |
||
53 | public int x; |
||
54 | |||
55 | /// <summary>The vertical coordinate </summary> |
||
56 | public int y; |
||
57 | |||
58 | /// <summary> Creates a new coordinate object given with the (0,0) coordinates |
||
59 | /// |
||
60 | /// </summary> |
||
61 | public Coord() |
||
62 | { |
||
63 | } |
||
64 | |||
65 | /// <summary> Creates a new coordinate object given the two coordinates. |
||
66 | /// |
||
67 | /// </summary> |
||
68 | /// <param name="x">The horizontal coordinate. |
||
69 | /// |
||
70 | /// </param> |
||
71 | /// <param name="y">The vertical coordinate. |
||
72 | /// |
||
73 | /// </param> |
||
74 | public Coord(int x, int y) |
||
75 | { |
||
76 | this.x = x; |
||
77 | this.y = y; |
||
78 | } |
||
79 | |||
80 | /// <summary> Creates a new coordinate object given another Coord object i.e. copy |
||
81 | /// constructor |
||
82 | /// |
||
83 | /// </summary> |
||
84 | /// <param name="c">The Coord object to be copied. |
||
85 | /// |
||
86 | /// </param> |
||
87 | public Coord(Coord c) |
||
88 | { |
||
89 | this.x = c.x; |
||
90 | this.y = c.y; |
||
91 | } |
||
92 | |||
93 | /// <summary> Returns a string representation of the object coordinates |
||
94 | /// |
||
95 | /// </summary> |
||
96 | /// <returns> The vertical and the horizontal coordinates |
||
97 | /// |
||
98 | /// </returns> |
||
99 | public override System.String ToString() |
||
100 | { |
||
101 | return "(" + x + "," + y + ")"; |
||
102 | } |
||
103 | } |
||
104 | } |