UF_CURVE_arc_s (view source)
 
Defined in: uf_curve.h
 
Also known as:
 
Overview

Figure Arc construction
The matrix tag defines the orientation of the arc. The arc center is
with respect to the origin (0,0,0) of the absolute coordinate system
using the orientation of the arcs matrix. If you have arc center
coordinates with respect to the absolute coordinate system you must
map the coordinates to the arcs CSYS and enter these mapped
coordinates into the arc_center[3] member field of the
UF_CURVE_arc_s structure. To obtain the mapped coordinates use
the following transformation mapping:

[X][T] = mapped coordinates

where you take the matrix multiplication of X and T. X is the vector
coordinates [x y z] that you wish to map, T is the orientation matrix
represented by matrix_tag. The results, mapped coordinates, are the
values to enter into arc_center[3]
To obtain an orientation (rotation) matrix rotated about an axis at a
specified angle use UF_MTX3_rotate_about_axis. To obtain the
product of a vector and matrix use UF_MTX3_vec_multiply. To create
the matrix and obtain its tag use UF_CSYS_create_matrix.

Refer to the example
See the Matrices and Coordinate System (uf_csys.h)
for routines that you can use for getting the matrix_tag.


Data Members

matrix_tag
tag_t
matrix for the CSYS the arc is in

start_angle
double
expressed in radians

end_angle
double
expressed in radians

arc_center [ 3 ]
double
center of the arc

radius
double
radius of the arc