Herror ::projection_pl (
const HTuple &Row,
const HTuple &Column,
const HTuple &Row1,
const HTuple &Column1,
const HTuple &Row2,
const HTuple &Column2,
double *RowProj,
double *ColProj
)
Herror ::projection_pl (
const HTuple &Row,
const HTuple &Column,
const HTuple &Row1,
const HTuple &Column1,
const HTuple &Row2,
const HTuple &Column2,
HTuple *RowProj,
HTuple *ColProj
)
Calculate the projection of a point onto a line.
The operator ::projection_pl calculates the projection of a point
(Row,Column) onto a line which is represent
by the start point (Row1,Column1) and the
end point (Row2,Column2).
RowProj is the row of the projection point and ColProj
is the column of the projection point.
Parameters
Row (input_control)
|
point.y(-array) -> HTuple.double / long
|
|
Row of the point. |
Column (input_control)
|
point.x(-array) -> HTuple.double / long
|
|
Column of the point. |
Row1 (input_control)
|
point.y(-array) -> HTuple.double / long
|
|
Row of the first point of the line. |
Column1 (input_control)
|
point.x(-array) -> HTuple.double / long
|
|
Column of the first point of the line. |
Row2 (input_control)
|
point.y(-array) -> HTuple.double / long
|
|
Row of the second point of the line. |
Column2 (input_control)
|
point.x(-array) -> HTuple.double / long
|
|
Column of the second point of the line. |
RowProj (output_control)
|
number(-array) -> (HTuple.) double *
|
|
Row of the projection |
ColProj (output_control)
|
number(-array) -> (HTuple.) double *
|
|
Column of the projection |
Example
projection_pl(row,column,row1,column1,row2,column2,
&row_proj,&col_proj);
Result
::projection_pl returns H_MSG_TRUE.
Module
Basic operators
Copyright © 1996-2002 MVTec Software GmbH