DL Logo

ASDouble Typedefs

ASDouble

Header: ASExpT.h:1221

Description

The ASDouble type is a 64-bit type representing a floating number

ASDoubleP is a pointer to an ASDouble object.

Syntax

typedef double ASDouble, *ASDoubleP;

Returned From

Used By

Used In

ASReal

Header: ASExpT.h:1189

Description

Definition of ASReal.

Syntax

typedef float ASReal;

Used By

Used In

ASDouble Structures

_t_ASDoubleMatrix

Header: ASExpT.h:1226

Description

Matrix containing double numbers.

Syntax

struct _t_ASDoubleMatrix {
} ASDoubleMatrix, *ASDoubleMatrixP;

Used By

Used In

_t_ASDoublePoint

Header: ASExpT.h:1251

Description

A point (in two-dimensional space) represented by two double numbers.

Syntax

struct _t_ASDoublePoint {
} ASDoublePoint, *ASDoublePointP;

Used By

_t_ASDoubleRect

Header: ASExpT.h:1266

Description

A rectangle represented by the coordinates of its four sides. In the Acrobat viewer, a rectangle differs from a quadrilateral in that a rectangle must always have horizontal and vertical sides, and opposite sides must be parallel.

Syntax

struct _t_ASDoubleRect {
ASDouble left;
ASDouble top;
ASDouble right;
ASDouble bottom;
} ASDoubleRect, *ASDoubleRectP;

Used By

_t_ASRealMatrix

Header: ASExpT.h:1205

Syntax

struct _t_ASRealMatrix {
ASReal a, b, c, d, tx, ty;
} ASRealMatrix;

Used In

_t_ASRealPoint

Header: ASExpT.h:1193

Syntax

struct _t_ASRealPoint {
ASReal h, v;
} ASRealPoint;

Returned From

Used By

Used In

_t_ASRealRect

Header: ASExpT.h:1199

Syntax

struct _t_ASRealRect {
ASReal left, top, right, bottom;
} ASRealRect;

Used In

ASDouble Functions

ASDoubleMatrixConcat

Header: ASProcs.h:2895

Description

Multiplies two matrices.

Syntax

void ASDoubleMatrixConcat(ASDoubleMatrix *result, const ASDoubleMatrix *m1, const ASDoubleMatrix *m2);

Parameters

result
(Filled by the method) A pointer to matrix m2 x m1. It is allowed for the result to point to the same location as either m1 or m2.
m1
A pointer to the ASDoubleMatrix value for the first matrix to multiply.
m2
A pointer to the ASDoubleMatrix value for the second matrix to multiply.

ASDoubleMatrixConcat

Header: ASProcs.h:2963

Description

Multiplies two matrices.

Syntax

void ASDoubleMatrixConcat(ASDoubleMatrix *result, const ASDoubleMatrix *m1, const ASDoubleMatrix *m2);

Parameters

result
(Filled by the method) A pointer to matrix m2 x m1. It is allowed for the result to point to the same location as either m1 or m2.
m1
A pointer to the ASDoubleMatrix value for the first matrix to multiply.
m2
A pointer to the ASDoubleMatrix value for the second matrix to multiply.

ASDoubleMatrixInvert

Header: ASProcs.h:2911

Description

Inverts a matrix.

If a matrix is nearly singular (which means that it has a determinant that is nearly zero), inverting and re-inverting the matrix may not yield the original matrix.

Syntax

void ASDoubleMatrixInvert(ASDoubleMatrix *result, const ASDoubleMatrix *m);

Parameters

result
(Filled by the method) A pointer to m-1. It is allowed for the result to point to the same location as m.
m
A pointer to the ASDoubleMatrix to invert.

ASDoubleMatrixInvert

Header: ASProcs.h:2979

Description

Inverts a matrix.

If a matrix is nearly singular (which means that it has a determinant that is nearly zero), inverting and re-inverting the matrix may not yield the original matrix.

Syntax

void ASDoubleMatrixInvert(ASDoubleMatrix *result, const ASDoubleMatrix *m);

Parameters

result
(Filled by the method) A pointer to m-1. It is allowed for the result to point to the same location as m.
m
A pointer to the ASDoubleMatrix to invert.

ASDoubleMatrixTransform

Header: ASProcs.h:2928

Description

Transforms the point p through the matrix m, and puts the result in result. p and result can point to the same location.

Syntax

void ASDoubleMatrixTransform(ASDoublePoint *result, const ASDoubleMatrix *m, const ASDoublePoint *p);

Parameters

result
(Filled by the method) A pointer to the ASDoublePoint containing the result of transforming p through m. It is allowed for the result to point to the same location as m.
m
A pointer to the ASDoubleMatrix through which p is transformed.
p
A pointer to the ASDoublePoint representing the point to transform through m.

ASDoubleMatrixTransform

Header: ASProcs.h:2996

Description

Transforms the point p through the matrix m, and puts the result in result. p and result can point to the same location.

Syntax

void ASDoubleMatrixTransform(ASDoublePoint *result, const ASDoubleMatrix *m, const ASDoublePoint *p);

Parameters

result
(Filled by the method) A pointer to the ASDoublePoint containing the result of transforming p through m. It is allowed for the result to point to the same location as m.
m
A pointer to the ASDoubleMatrix through which p is transformed.
p
A pointer to the ASDoublePoint representing the point to transform through m.

ASDoubleMatrixTransformRect

Header: ASProcs.h:2946

Description

Transforms a rectangle through a matrix.

Syntax

void ASDoubleMatrixTransformRect(ASDoubleRect *result, const ASDoubleMatrix *m, const ASDoubleRect *r);

Parameters

result
(Filled by the method) A pointer to the ASDoubleRect containing the smallest bounding box for the transformed rectangle. It is allowed for the result to point to the same location as m. result will always have bottom < top and left < right.
m
A pointer to the ASDoubleMatrix containing the matrix through which r is transformed.
r
A pointer to the ASDoubleRect containing the rectangle to transform through m.

ASDoubleMatrixTransformRect

Header: ASProcs.h:3014

Description

Transforms a rectangle through a matrix.

Syntax

void ASDoubleMatrixTransformRect(ASDoubleRect *result, const ASDoubleMatrix *m, const ASDoubleRect *rectIn);

Parameters

result
(Filled by the method) A pointer to the ASDoubleRect containing the smallest bounding box for the transformed rectangle. It is allowed for the result to point to the same location as m. result will always have bottom < top and left < right.
m
A pointer to the ASDoubleMatrix containing the matrix through which r is transformed.
r
A pointer to the ASDoubleRect containing the rectangle to transform through m.