private void GetExtremePoints(IBody2 body, double[] dir, out double[] pt1, out double[] pt2) { double x; double y; double z; body.GetExtremePoint(dir[0], dir[1], dir[2], out x, out y, out z); pt1 = new double[] { x, y, z }; body.GetExtremePoint(-dir[0], -dir[1], -dir[2], out x, out y, out z); pt2 = new double[] { x, y, z }; }
public void GetExtremePoints(Vector dir, out Point startPt, out Point endPt) { double x; double y; double z; m_Body.GetExtremePoint(dir.X, dir.Y, dir.Z, out x, out y, out z); startPt = new Point(x, y, z); m_Body.GetExtremePoint(-dir.X, -dir.Y, -dir.Z, out x, out y, out z); endPt = new Point(x, y, z); }