blob: b32198bc8230fe6c8e286f25f84b8f9d3fb0e228 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package com.artifex.mupdf.fitz;
public class Point
{
public float x;
public float y;
public Point(float x, float y) {
this.x = x;
this.y = y;
}
public Point(Point p) {
this.x = p.x;
this.y = p.y;
}
public String toString() {
return "[" + x + " " + y + "]";
}
public Point transform(Matrix tm) {
float old_x = this.x;
this.x = old_x * tm.a + y * tm.c + tm.e;
this.y = old_x * tm.b + y * tm.d + tm.f;
return this;
}
}
|