private Point3DF OffsetTransformPoint(Point3DF op) { var p = op; p.X = p.X * Get2DScale(); p.Y = p.Y * Get2DScale(); p.X = p.X + hw; p.Y = p.Y + hh; return(p); }
private Point3DF ProjectionTransformPoint(Point3DF op) { var p = op; p.X = p.X * Get3DScale(); p.Y = p.Y * Get3DScale(); p.Z = p.Z * Get3DScale(); p.X = p.X * -1; p.Y = p.Y * 1F; p.Z = p.Z * 1F; var fov = h / w; var s = fov / (p.Z + fov); p.X = p.X * p.Z; // +(hw / p.Z); p.Y = p.Y * p.Z; // +(hh * p.Z); return(p); }
private Point3DF ProjectionTransformPoint(Point3DF op) { var p = op; p.X = p.X * Get3DScale(); p.Y = p.Y * Get3DScale(); p.Z = p.Z * Get3DScale(); p.X = p.X * -1; p.Y = p.Y * 1F; p.Z = p.Z * 1F; var fov = h / w; var s = fov / (p.Z + fov); p.X = p.X * p.Z;// +(hw / p.Z); p.Y = p.Y * p.Z;// +(hh * p.Z); return p; }
private Point3DF OffsetTransformPoint(Point3DF op) { var p = op; p.X = p.X * Get2DScale(); p.Y = p.Y * Get2DScale(); p.X = p.X + hw; p.Y = p.Y + hh; return p; }