我把vb.net下的代码改写成C#时 double ka = (double)kp(1) / (double)kp(0) - Math.PI / 2; 错误:Error3 'kp' is a 'variable' but is used like a 'method';高手赐教一下,谢谢!!! 'vb Dim p As Point3d = cv.GetPointAtDist(i * len / n) Dim kp As Object = cv.GetFirstDerivative(cv.GetParameterAtDistance(i * len / n)) Dim ka As Double = kp(1) / kp(0) - Math.PI / 2 'Double s = kp(1) Call AddText(p, "等分点\" & CStr(i), 3, ka, 1, 1) ////////C# p =cv.GetPointAtDist (i * len / n); Object kp =(Object) cv.GetFirstDerivative(cv.GetParameterAtDistance(i * len / n)); double ka = (double)kp(1) / (double)kp(0) - Math.PI / 2; AddText(p, "等分点" + i.ToString(), 3, ka, 1, 1);