public static LineParametric2D_F64 convert ( LineGeneral2D_F64 src , LineParametric2D_F64 ret ) { if ( ret == null ) { ret = new LineParametric2D_F64 ( ) ; } ret . slope . x = src . B ; ret . slope . y = - src . A ; // find a point on the line if ( Math . abs ( src . B ) > Math . abs ( src . A ) ) { ret . p . y = - src . C / src . B ; ret . p . x = 0 ; } else { ret . p . x = - src . C / src . A ; ret . p . y = 0 ; } return ret ; }
Converts a line from general to parametric