formZ SDK | 5.0 API Reference | System | Math

fz_math_3d_interp_pt_on_line

Description

Given a 3d line segment (defined by it's start and end points) and a ratio (between 0.0 and 1.0), interpolates a 3d point on the line segment.
For example:
ratio 0.0 : point is at line_start
ratio 0.5 : point is the midpoint of the line segment
ratio 1.0 : point is at line_end

Plugin Prototype

fzrt_error_td fz_math_3d_interp_pt_on_line(

fz_xyz_td *

line_start,

fz_xyz_td *

line_end,

double

ratio,

fz_xyz_td *

pt )

Parameters

line_start [Input]

start point of 3d line segment

line_end [Input]

ens point of 3d line segment

ratio [Input]

ratio

Range: 0.0 <= ratio <= 1.0

pt [Result]

interpolated 3d point

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_3d.fsl

See Also

Function Set

fz_math_fset


Defined in

fz_math_api.h