Last change
on this file since 8189 was 8189, checked in by kjdon, 20 years ago |
first version of Imperial College's Visualiser code
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
570 bytes
|
Line | |
---|
1 | package vishnu.datablock;
|
---|
2 | import java.io.*;
|
---|
3 | /**
|
---|
4 | * Point2D.java: Class for points in logical coordinates.
|
---|
5 | * From Section 1.5 of
|
---|
6 | * @author Ammeraal, L. (1998) Computer Graphics for Java Programmers,
|
---|
7 | * Chichester: John Wiley.
|
---|
8 | */
|
---|
9 | public class Point2D implements Serializable
|
---|
10 | {
|
---|
11 | /** x cartesian coordinate */
|
---|
12 | public float x;
|
---|
13 | /** y cartesian coordinate */
|
---|
14 | public float y;
|
---|
15 | /**
|
---|
16 | * constructor
|
---|
17 | * @param cartesian x coordinate
|
---|
18 | * @param cartesian y coordinate
|
---|
19 | */
|
---|
20 | public Point2D(float x, float y){this.x = x; this.y = y;}
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.