Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

dbTransformPointList

dbTransformPointList( 
l_points
l_transform
) 
=> l_points / nil

Description

Transforms all points in an array in the same way as dbTransformPoint does with a single point. This function does not modify the original array, and returns the transformed array.

Arguments

l_points

The array of coordinate pairs to be transformed.

l_transform

list(l_offset t_transform [f_scale])

  • A transformation object. l_offset: list(f_offsetX f_offsetY)
  • An offset vector. t_transform: A transformation name. Valid values are “R0”, “R90”, “R180”, “R270”, “MX”, “MXR90”, “MY”, and “MYR90”; or, their corresponding symbols such as 'R0, 'R90, 'R180, 'R270, 'MX, 'MXR90, 'MY, and 'MYR90.
  • A scale ratio (optional). f_scale Default value is 1.0.

Value Returned

l_points

The list of transformed points.

nil

The transformation was not successful.

Examples

dbTransformPointList(
list((0:0) (0:1) (0:2) (0:3))
list(0:0 "R90" 1.0)
)
=>
((0.0 0.0)
(-1.0 0.0)
(-2.0 0.0)
(-3.0 0.0))

Related Topics

Shape Transformation Functions


Return to top
 ⠀
X