From 1ad72d5276b1876bf218336a1ff47f086a0834c9 Mon Sep 17 00:00:00 2001 From: scuri Date: Thu, 24 Jun 2010 20:32:39 +0000 Subject: *** empty log message *** --- html/en/func/coordinates.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'html/en/func/coordinates.html') diff --git a/html/en/func/coordinates.html b/html/en/func/coordinates.html index a56b12d..ffaed2a 100644 --- a/html/en/func/coordinates.html +++ b/html/en/func/coordinates.html @@ -11,14 +11,14 @@

Coordinate System

-
void cdCanvasGetSize(cdCanvas* canvas, int *width, int *height, double *width_mm, double *height_mm); [in C]
+
void cdCanvasGetSize(cdCanvas* canvas, int *width, int *height, double *width_mm, double *height_mm); [in C]
 
 canvas:GetSize() -> (width, height, mm_width, mm_height: number) [in Lua]

Returns the canvas size in pixels and in millimeters. You can provide only the desired values and NULL for the others.

-
int cdCanvasYAxisMode(cdCanvas* canvas, int invert); [in C]
+
int cdCanvasYAxisMode(cdCanvas* canvas, int invert); [in C]
 
 canvas:YAxisMode(invert: number) -> (old_invert: number) [in Lua]
@@ -30,7 +30,7 @@ canvas:YAxisMode(invert: number) -> (old_invert: number) [in Lua]
orientation, with that you can in fact invert the orientation of the CD primitives.

-
int cdCanvasUpdateYAxis(cdCanvas* canvas, int *y); [in C]
+
int cdCanvasUpdateYAxis(cdCanvas* canvas, int *y); [in C]
 double cdfCanvasUpdateYAxis(cdCanvas* canvas, double *y); [in C]
 int cdCanvasInvertYAxis(cdCanvas* canvas, int y); [in C]
 double cdfCanvasInvertYAxis(cdCanvas* canvas, double y); [in C]
@@ -45,7 +45,7 @@ canvas:InvertYAxis(yc: number) -> (yr: number) [in Lua]
the given value, the "Update" function will invert only if the canvas has the Y axis inverted.

-
void cdCanvasMM2Pixel(cdCanvas* canvas, double mm_dx, double mm_dy, int *dx, int *dy); [in C]
+
void cdCanvasMM2Pixel(cdCanvas* canvas, double mm_dx, double mm_dy, int *dx, int *dy); [in C]
 void cdfCanvasMM2Pixel(cdCanvas* canvas, double mm_dx, double mm_dy, double *dx, double *dy); [in C]
 
 canvas:MM2Pixel(mm_dx, mm_dy: number) -> (dx, dy: number) [in Lua]
@@ -55,7 +55,7 @@ canvas:fMM2Pixel(mm_dx, mm_dy: number) -> (dx, dy: number) [in Lua]
provide only the desired values and NULL for the others.

-
void cdCanvasPixel2MM(cdCanvas* canvas, int dx, int dy, double *mm_dx, double *mm_dy); [in C]
+
void cdCanvasPixel2MM(cdCanvas* canvas, int dx, int dy, double *mm_dx, double *mm_dy); [in C]
 void cdfCanvasPixel2MM(cdCanvas* canvas, double dx, double dy, double *mm_dx, double *mm_dy); [in C]
 
 canvas:Pixel2MM(dx, dy: number) -> (mm_dx, mm_dy: number) [in Lua]
@@ -68,7 +68,7 @@ canvas:fPixel2MM(dx, dy: number) -> (mm_dx, mm_dy: number) [in Lua]
dy. The resolution value is obtained using the formula res=1.0/mm.

-
void cdCanvasOrigin(cdCanvas* canvas, int x, int y); [in C]
+
void cdCanvasOrigin(cdCanvas* canvas, int x, int y); [in C]
 void cdfCanvasOrigin(cdCanvas* canvas, double x, double y); [in C]
 
 canvas:Origin(x, y: number) [in Lua]
@@ -80,7 +80,7 @@ canvas:fOrigin(x, y: number) [in Lua]
canvas in the respective driver. Default values: (0, 0)

-
void cdCanvasGetOrigin(cdCanvas* canvas, int *x, int *y); [in C]
+
void cdCanvasGetOrigin(cdCanvas* canvas, int *x, int *y); [in C]
 void cdfCanvasGetOrigin(cdCanvas* canvas, double *x, double *y); [in C]
 
 canvas:GetOrigin() -> (x, y: number) [in Lua]
@@ -88,10 +88,10 @@ canvas:fGetOrigin() -> (x, y: number) [in Lua]

Returns the origin.

- +

Transformation Matrix

-
void cdCanvasTransform(cdCanvas* canvas, const double* matrix); [in C]
+
void cdCanvasTransform(cdCanvas* canvas, const double* matrix); [in C]
 
 canvas:Transform(matrix: table) [in Lua]
@@ -113,46 +113,46 @@ functions. And those are affected if a transformation is set, just like other regular primitives.

-
double* cdCanvasGetTransform(cdCanvas* canvas); [in C]
+
double* cdCanvasGetTransform(cdCanvas* canvas); [in C]
 
 canvas:GetTransformation() -> (matrix: table) [in Lua]

Returns the transformation matrix. If the identity is set, returns NULL.

-
void cdCanvasTransforMultiply(cdCanvas* canvas, const double* matrix); [in C]
+
void cdCanvasTransforMultiply(cdCanvas* canvas, const double* matrix); [in C]
 
 canvas:TransformMultiply(matrix: table) [in Lua]

Left multiply the current transformation by the given transformation.

-
void cdCanvasTransformTranslate(cdCanvas* canvas, double dx, double dy); [in C]
+
void cdCanvasTransformTranslate(cdCanvas* canvas, double dx, double dy); [in C]
 
 canvas:TransformTranslate(dx, dy: number) [in Lua]

Applies a translation to the current transformation.

-
void cdCanvasTransformScale(cdCanvas* canvas, double sx, double sy); [in C]
+
void cdCanvasTransformScale(cdCanvas* canvas, double sx, double sy); [in C]
 
 canvas:TransformScale(sx, sy: number) [in Lua]

Applies a scale to the current transformation.

-
void cdCanvasTransformRotate(cdCanvas* canvas, double angle); [in C]
+
void cdCanvasTransformRotate(cdCanvas* canvas, double angle); [in C]
 
 canvas:TransformRotate(angle: number) [in Lua]

Applies a rotation to the current transformation. Angle is in degrees, oriented counter-clockwise from the horizontal axis.

-
void cdCanvasTransformPoint(cdCanvas* canvas, int x, int y, int *tx, int *ty); [in C]
+
void cdCanvasTransformPoint(cdCanvas* canvas, int x, int y, int *tx, int *ty); [in C]
 void cdfCanvasTransformPoint(cdCanvas* canvas, double x, double y, double *tx, double *ty); [in C]
 
 canvas:TransformPoint(x, y: number) -> (tx, ty: number) [in Lua]
 canvas:fTransformPoint(x, y: number) -> (tx, ty: number) [in Lua]

Applies a transformation to a given point.

- +
\ No newline at end of file -- cgit v1.2.3