File: Point.rst

package info (click to toggle)
mupdf 1.27.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,224 kB
  • sloc: ansic: 335,320; python: 20,906; java: 7,520; javascript: 2,213; makefile: 1,152; xml: 675; cpp: 639; sh: 513; cs: 307; awk: 10; sed: 7; lisp: 3
file content (35 lines) | stat: -rw-r--r-- 675 bytes parent folder | download
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
31
32
33
34
35
.. default-domain:: js

.. highlight:: javascript

Point
=====

A Point describes a point in space. It is represented by an array with two coordinates.

Constructors
------------

.. class:: Point

	|interface_type|

Points are not represented by a class; they are just plain arrays of two numbers.

Static methods
--------------

.. function:: Point.transform(point, matrix)

	|only_mutool|

	Transforms the supplied point by the given transformation matrix.

	:param Point point: Point to transform.
	:param Matrix matrix: Matrix describing transformation to perform.

	:returns: `Point`

	.. code-block::

		var m = mupdf.Point.transform([100, 100], [1, 0.5, 1, 1, 1, 1])