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

ccGetCurveDerivative

ccGetCurveDerivative(
g_curve
n_t
[ x_order ]
) 
=> l_xy

Description

(Virtuoso Photonics Option) Returns a derivative of a curve or a polyCurve segment at the specified value of the curve function parameter.

Arguments

g_curve

ID of a ccCurve object or a segment of a ccPolyCurve object in the form:

list(o_curve l_transform)

where,

  • o_curve is the ID of a ccCurve object.
  • l_transform is the transformation in the format:
    list(list(n_x n_y) n_angle)
    where:
    • n_angle is the rotation angle around (0, 0).
    • n_x and n_y determine the offsets along the X-axis and the Y-axis in this format (0,0).

n_t

The value of the curve function parameter.

x_order

A non-negative integer specifying the order of the derivative. The default is 1.

Value Returned

l_xy

Components of the derivative of a curve or a polyCurve segment.

Example

c=ccCreateCurve("t" "t^2" 0:1)
> cc@0xe74d47d9
ccGetCurveDerivative(c 0.5)
> (1.0 1.0)
ccGetCurveDerivative(list(c list(1:1 180)) 0.5)
> (-1.0 -1.0)

Related Topics

Curvy Core Mathematical Object Attribute Query Functions


Return to top
 ⠀
X