Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

DynaPDFMatrixMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 10.1 Yes Yes Yes Yes No
Function: Creates a new matrix and sets it to identity.
Example:
dim m as new DynaPDFMatrixMBS
MsgBox m

See also:

Feedback, Comments & Corrections

DynaPDFMatrixMBS.Constructor(a as Double, b as Double, c as Double, d as Double, x as Double, y as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 10.1 Yes Yes Yes Yes No
Function: Creates a new instance with setting values to the given parameters.
Example:
dim m as new DynaPDFMatrixMBS(1,2,3,4,5,6)
MsgBox m

See also:

Feedback, Comments & Corrections

DynaPDFMatrixMBS.Constructor(other as DynaPDFMatrixMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 10.1 Yes Yes Yes Yes No
Function: Creates a matrix object with copying the values.
Example:
dim m as new DynaPDFMatrixMBS(1,2,3,4,5,6)
dim n as new DynaPDFMatrixMBS(m)
MsgBox n

See also:

Feedback, Comments & Corrections

DynaPDFMatrixMBS.GetRotationAngle as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Calculates the rotate angle.
Example:
dim m as DynaPDFMatrixMBS = DynapdfMatrixMBS.Identity

m.Rotate 0.1

MsgBox str(m.GetRotationAngle) // shows 0.1
Notes: In radians from -pi to pi.

Feedback, Comments & Corrections

DynaPDFMatrixMBS.GetScaleFactor as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Calculates the scale factor.
Example:
dim m as DynaPDFMatrixMBS = DynapdfMatrixMBS.Identity

m.Scale 3.0, 4.0

MsgBox str(m.GetScaleFactor) // shows 3.535534

Feedback, Comments & Corrections

DynaPDFMatrixMBS.Invert
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Inverts the matrix.
Example:
dim m as new DynaPDFMatrixMBS

m.Invert

MsgBox m // shows [1.000000 -0.000000 -0.000000 1.000000 0.000000 0.000000]

Feedback, Comments & Corrections

DynaPDFMatrixMBS.IsIdentity as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Checks whether matrix is the identity matrix.
Example:
dim m as new DynaPDFMatrixMBS

MsgBox str(m.IsIdentity)

m.a = 3.0

MsgBox str(m.IsIdentity)
Notes: Returns true if a = 1, b = 0, c = 0, d = 1, x = 0 and y = 0.

Feedback, Comments & Corrections

DynaPDFMatrixMBS.LeftMultiply(a as Double, b as Double, c as Double, d as Double, x as Double, y as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Multiplies both matrix where self is on the left side.

See also:

Feedback, Comments & Corrections

DynaPDFMatrixMBS.LeftMultiply(other as DynaPDFMatrixMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Multiplies both matrix where self is on the left side.
Example:
dim m1 as new DynaPDFMatrixMBS
dim m2 as new DynaPDFMatrixMBS

m1.Rotate 0.1
m2.Scale 2.0, 3.0

dim m3 as new DynaPDFMatrixMBS(m1)
m3.LeftMultiply(m2)

MsgBox m1.Str+EndOfLine+m2.Str+EndOfLine+m3.Str

See also:

Feedback, Comments & Corrections

DynaPDFMatrixMBS.Operator_Compare(other as DynaPDFMatrixMBS) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Compares two matrix objects whether they have same values.
Example:
dim m1 as new DynaPDFMatrixMBS
dim m2 as new DynaPDFMatrixMBS

if m1 = m2 then
MsgBox "Equal, same values."
else
MsgBox "Not equal -> Bug in Plugin."
end if

if m1 is m2 then
MsgBox "Equal -> Bug in Xojo."
else
MsgBox "Not equal, different objects."
end if

Feedback, Comments & Corrections

DynaPDFMatrixMBS.Operator_Convert as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Converts matrix into a string for displaying in log files.
Example:
dim m as new DynaPDFMatrixMBS
MsgBox m // shows [1.000000 0.000000 0.000000 1.000000 0.000000 0.000000]
Notes: Added for debugging.

Feedback, Comments & Corrections

DynaPDFMatrixMBS.Operator_Multiply(other as DynaPDFMatrixMBS) as DynapdfMatrixMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Multiplies both matrix where self is on the left side.
Example:
dim m1 as new DynaPDFMatrixMBS
dim m2 as new DynaPDFMatrixMBS

m1.Rotate 0.1
m2.Scale 2.0, 3.0

dim m3 as DynaPDFMatrixMBS = m1*m2

MsgBox m1.Str+EndOfLine+m2.Str+EndOfLine+m3.Str

Feedback, Comments & Corrections

DynaPDFMatrixMBS.Operator_MultiplyRight(other as DynaPDFMatrixMBS) as DynapdfMatrixMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Multiplies both matrix where self is on the right side.

Feedback, Comments & Corrections

DynaPDFMatrixMBS.RightMultiply(a as Double, b as Double, c as Double, d as Double, x as Double, y as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Multiplies both matrix where self is on the right side.

See also:

Feedback, Comments & Corrections

DynaPDFMatrixMBS.RightMultiply(other as DynaPDFMatrixMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Multiplies both matrix where self is on the right side.

See also:

Feedback, Comments & Corrections

DynaPDFMatrixMBS.Rotate(angle as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Rotates matrix with the given angle.
Example:
dim m as new DynaPDFMatrixMBS

const pi = 3.14159265

dim angle as Double = 30.0/180.0*pi

m.Rotate(angle)

MsgBox m // shows [0.866025 0.500000 -0.500000 0.866025 0.000000 0.000000]
Notes: Angle in radians: 2*pi = 360 degree

Feedback, Comments & Corrections

DynaPDFMatrixMBS.Scale(sx as Double, sy as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Scales the matrix.
Example:
dim m as new DynaPDFMatrixMBS

m.Scale 2.0, 3.0

MsgBox m // [2.000000 0.000000 0.000000 3.000000 0.000000 0.000000]

Feedback, Comments & Corrections

DynaPDFMatrixMBS.SetIdentity
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Sets values back to the identity matrix.
Example:
dim m as new DynaPDFMatrixMBS

m.Scale 2.0, 3.0 // modify values
m.SetIdentity // and reset

MsgBox m // [1.000000 0.000000 0.000000 1.000000 0.000000 0.000000]

Feedback, Comments & Corrections

DynaPDFMatrixMBS.SetValues(a as Double, b as Double, c as Double, d as Double, x as Double, y as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Sets all the values in one method
Example:
dim m as new DynaPDFMatrixMBS

m.SetValues 1,2,3,4,5,6

MsgBox m

Feedback, Comments & Corrections

DynaPDFMatrixMBS.Str as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Converts matrix into a string for displaying in log files.
Example:
dim m as new DynaPDFMatrixMBS
MsgBox m.Str // shows [1.000000 0.000000 0.000000 1.000000 0.000000 0.000000]
Notes: Added for debugging.

Feedback, Comments & Corrections

DynaPDFMatrixMBS.Transform(byref x as Double, byref y as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Applies the matrix to the given point.
Example:
dim m as new DynaPDFMatrixMBS

const pi = 3.14159265
dim angle as Double = 30.0/180.0*pi
m.Rotate(angle)
m.Translate 2.0, 3.0

dim x as Double = 100.0
dim y as Double = 100.0

m.Transform x,y

MsgBox str(x)+" "+str(y) // 36.83459 140.2006

Feedback, Comments & Corrections

DynaPDFMatrixMBS.TransformInv(byref x as Double, byref y as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Applies the matrix to the given point in inverse mode.
Example:
dim m as new DynaPDFMatrixMBS

const pi = 3.14159265
dim angle as Double = 30.0/180.0*pi
m.Rotate(angle)
m.Translate 2.0, 3.0

dim x as Double = 100.0
dim y as Double = 100.0

// transform
m.Transform x,y

MsgBox str(x)+" "+str(y) // 36.83459 140.2006

// transform back
m.TransformInv x,y

MsgBox str(x)+" "+str(y) // 100 100#
Notes: Like you have a point and want to know whether it was before the matrix was applied.

Feedback, Comments & Corrections

DynaPDFMatrixMBS.Translate(x as Double, y as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DynaPDF MBS DynaPDF Plugin 11.1 Yes Yes Yes Yes No
Function: Translates matrix by given values.
Example:
dim m as new DynaPDFMatrixMBS

m.Translate 2,3

MsgBox m // shows [1.000000 0.000000 0.000000 1.000000 2.000000 3.000000]

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS DynaPDF Plugin.

The biggest plugin in space...




Links
MBS FileMaker tutorial videos