PointAndDerivatives method

Microsoft Visio Developer Reference

PointAndDerivatives method

       

Returns a point and derivatives at a position along a curve's path.

Version added

5.0

Syntax

object.PointAndDerivatives(t, n, x, y, dx, dy, ddx, ddy)

object

Required. An expression that returns a Curve object.

t

Required Double. The value in the curve's parameter domain to evaluate.

n

Required Integer. 0: get point; 1: point and 1st derivative; 2: point plus first and second derivative.

x

Required Double. Returns x value of curve at t.

y

Required Double. Returns y value of curve at t.

dx

Required Double. Returns first derivative (dx/dt) at t if n > 0.

dy

Required Double. Returns first derivative (dx/dt) at t if n > 0.

ddx

Required Double. Returns second derivative (ddx/dt) at t if n > 1.

ddy

Required Double. Returns second derivative (ddy/dt) at t if n > 1.

Remarks

Use the PointAndDerivatives method of the Curve object to obtain the coordinates of a point within the curve's parameter domain and its first and second derivatives.

A Curve object describes itself in terms of its parameter domain which is the range [Start(),End()]. The PointAndDerivatives method can be used to extrapolate the curve's path outside [Start(),End()].