Q&A - Question

method GisPointOnLine3D

Question
PeiH asked on September 25, 2018, keyword: Developer Kernel
The description of "GisPointOnLine3D" is "Calculates a projection of a point into the line in 3D.".
A sample code in c++ builder as the following

    TGIS_Point3D lineA,lineB,ptRaw;
    lineA.X=0.; lineA.Y=0.; lineA.Z=0.;
    lineB.X=1.; lineB.Y=1.; lineB.Z=1.;
    ptRaw.X=0.; ptRaw.Y=1.; ptRaw.Z=0.;
    TGIS_Point3D ptPrj=GisPointOnLine3D(lineA,lineB,ptRaw);

Why the result of ptPrj={0.5,0.5,0} does not located on the line(A-B) in 3D?
Thanks.
Answers
Tomasz Kosinski (TatukGIS) replied September 25, 2018
Calculations are planar. Documentation is not precise about this. I filled an improvement request as DK-10558
If you would like to answer the question please Sign In.
Please review our recent Privacy Policy.
If you have any questions or requests, please contact us.
Rules
The Questions and Answers (Q & A) is intended to provide a means of communication between TatukGIS customers.
 
  1. Licensed users (with active maintenance play) of TatukGIS products may contribute to the Q & A content. Read-only access is available to anyone.
  2. Keep the content positive and professional.
  3. Be courteous to others by posting information when a question or issue asked on the Q & A is answered or resolved by other means (such as with help from TatukGIS technical support). Offer others at least a hint how the posted question was answered or the issue was resolved.
  4. The Q & A is not a replacement for TatukGIS technical support. TatukGIS team may or may not regularly follow or contribute content.