public static ParabolaGeneral_F64 convert ( ConicGeneral_F64 src , ParabolaGeneral_F64 dst ) { if ( dst == null ) dst = new ParabolaGeneral_F64 ( ) ; // NOTE haven't put much through if this is the correct way to handle negative values of A or C dst . A = Math . signum ( src . A ) * Math . sqrt ( Math . abs ( src . A ) ) ; dst . C = Math . signum ( src . C ) * Math . sqrt ( Math . abs ( src . C ) ) ; dst . D = src . D ; dst . E = src . E ; dst . F = src . F ; return dst ; }
Converts the conic into a parabola . If the conic isn t a parabola then it is converted into one by adjusting the value of B .