Platforms to show: All Mac Windows Linux Cross-Platform

Back to DynaPDFRectMBS class.

DynaPDFRectMBS.Constructor(left as Double = 0.0, top as Double = 0.0, right as Double = 0.0, bottom as Double = 0.0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a new rectangle with the given values.

See also:

DynaPDFRectMBS.Constructor(other as DynaPDFRectMBS)   New in 26.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a copy of the rectangle.
Example
Var p As New DynaPDFRectMBS(1,2,3,4)
Var c As New DynaPDFRectMBS(p)
Var o As New DynaPDFRectMBS(2,3,4,5)

If p = c Then
// okay
Else
Break
End If

If p <> o Then
// okay
Else
Break
end if

See also:

DynaPDFRectMBS.Intersect(other as DynaPDFRectMBS)   New in 26.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Intersects the array with the other one.
Example
Var p As New DynaPDFRectMBS(1,2,3,4)
var o as new DynaPDFRectMBS(2,2,4,4)

p.Intersect(o)

MessageBox p.Left.ToString+"/"+p.top.ToString+" "+p.Right.ToString+"/"+p.bottom.ToString

See also:

DynaPDFRectMBS.Intersect(X1 as Int32, Y1 as Int32, X2 as Int32, Y2 as Int32)   New in 26.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Intersects the array with the other one.
Example
Var p As New DynaPDFRectMBS(1,2,3,4)

p.Intersect(2,2,4,4)

MessageBox p.Left.ToString+"/"+p.top.ToString+" "+p.Right.ToString+"/"+p.bottom.ToString

See also:

DynaPDFRectMBS.IsInside(other as DynaPDFRectMBS) as Boolean   New in 26.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the given rectangle is inside the other rectangle.
Example
Var p As New DynaPDFRectMBS(1,2,3,4)
var r as new DynaPDFRectMBS(2,2,4,4)

If p.IsInside(r) Then
MessageBox "Inside"
Else
MessageBox "outside"
end if

See also:

DynaPDFRectMBS.IsInside(X1 as double, Y1 as double, X2 as double, Y2 as double) as Boolean   New in 26.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the given rectangle is inside the other rectangle.
Example
Var p As New DynaPDFRectMBS(1,2,3,4)

If p.IsInside(2,2,4,4) Then
MessageBox "Inside"
Else
MessageBox "outside"
end if

See also:

DynaPDFRectMBS.MoveX(x as double)   New in 26.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Moves X coordinates.
Example
Var p As New DynaPDFRectMBS(1,2,3,4)

p.MoveX 5
p.MoveY 3

MessageBox p.Left.ToString+"/"+p.top.ToString+" "+p.Right.ToString+"/"+p.bottom.ToString

DynaPDFRectMBS.MoveY(y as double)   New in 26.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Moves Y coordinates.
Example
Var p As New DynaPDFRectMBS(1,2,3,4)

p.MoveX 5
p.MoveY 3

MessageBox p.Left.ToString+"/"+p.top.ToString+" "+p.Right.ToString+"/"+p.bottom.ToString

DynaPDFRectMBS.Normalize   New in 26.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Normalizes rectangles.
Example
Var p As New DynaPDFRectMBS(3,4,1,2)

p.Normalize

MessageBox p.Left.ToString+"/"+p.top.ToString+" "+p.Right.ToString+"/"+p.bottom.ToString

If right is left, we swap them.
If bottom is above top, we swap them.

DynaPDFRectMBS.Operator_Compare(other as DynaPDFRectMBS) as Integer   New in 26.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compares two rectangles.
Example
Var p As New DynaPDFRectMBS(1,2,3,4)
Var c As New DynaPDFRectMBS(p)
Var o As New DynaPDFRectMBS(2,3,4,5)

If p = c Then
// okay
Else
Break
End If

If p <> o Then
// okay
Else
Break
end if

DynaPDFRectMBS.Scale(v as double)   New in 26.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Scales
Example
Var p As New DynaPDFRectMBS(1,2,3,4)

p.Scale(1.5)

MessageBox p.Left.ToString+"/"+p.top.ToString+" "+p.right.ToString+"/"+p.bottom.ToString

DynaPDFRectMBS.Translate(x as double, y as double)   New in 26.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Moves the rectangle by X/Y.
Example
Var p As New DynaPDFRectMBS(1,2,3,4)

p.Translate 5,3

MessageBox p.Left.ToString+"/"+p.top.ToString+" "+p.Right.ToString+"/"+p.bottom.ToString

DynaPDFRectMBS.Widen(other as DynaPDFRectMBS)   New in 26.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DynaPDF MBS DynaPDF Plugin 26.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Widens the rectangle to include the given one.
Example
Var p As New DynaPDFRectMBS(1,2,3,4)

var r as new DynaPDFRectMBS(2,3,4,5)

// this will change Right/Bottom to 4 and 5 as that is bigger in the second one
p.Widen r

MessageBox p.Left.ToString+"/"+p.top.ToString+" "+p.Right.ToString+"/"+p.bottom.ToString

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


The biggest plugin in space...