public void Transform(ref PPoint3D point, List <PPoint3D> allPoints) { var num = point.Y * (float)Math.Cos(point.X); point.Y = point.Y * (float)Math.Sin(point.X); point.X = num; }
public void Invert(ref PPoint3D point, List <PPoint3D> allPoints) { var num = (float)Math.Sqrt(point.X * (double)point.X + point.Y * (double)point.Y); point.X = (float)Extensions.Mod(Math.Atan2(point.Y, point.X), 2.0 * Math.PI); point.Y = num; }
public void Transform(ref PPoint3D point, List <PPoint3D> allPoints) { var num = 1f / (float)Math.Sqrt(point.SquareLen()); point.X *= num; point.Y *= num; point.Z *= num; }
public void Transform(ref PPoint3D point, List <PPoint3D> allPoints) { var num = point.SquareLen(); point.X /= num; point.Y /= num; point.Z /= num; }
public void Invert(ref PPoint3D point, List <PPoint3D> allPoints) { var num1 = (float) (point.X * (_cc * (double)_cb + _sa * (double)_sb * _sc) + point.Y * (double)_ca * _sc - point.Z * (_cc * (double)_sb + _sa * (double)_sc * _cb)); var num2 = (float) (-(double)point.X * (_sc * (double)_cb + _sa * (double)_sb * _cc) + point.Y * (double)_ca * _cc + point.Z * (_sc * (double)_sb + _sa * (double)_cb * _cc)); point.Z = (float)(-(double)point.Y * _sa + point.Z * (double)_ca * _cb + point.X * (double)_ca * _sb); point.X = num1; point.Y = num2; }
public void Transform(ref PPoint3D point, List <PPoint3D> allPoints) { var num1 = (float) (point.X * (_cc * (double)_cb - _sa * (double)_sb * _sc) - point.Y * (double)_ca * _sc + point.Z * (_cc * (double)_sb + _sa * (double)_sc * _cb)); var num2 = (float) (point.X * (_sc * (double)_cb + _sa * (double)_sb * _cc) + point.Y * (double)_ca * _cc + point.Z * (_sc * (double)_sb - _sa * (double)_cb * _cc)); point.Z = (float)(point.Y * (double)_sa + point.Z * (double)_ca * _cb - point.X * (double)_ca * _sb); point.X = num1; point.Y = num2; }
public Plot2D UnProject(Plot3D p) { Plot2D plot2D = new Plot2D { LinesH = p.LinesH, LinesV = p.LinesV, Size = p.Size }; foreach (PPoint3D point in p.GetPoints()) { PPoint3D ppoint3D = point; plot2D.AddPoint(new PPoint2D(ppoint3D.X / (1f - ppoint3D.Z), ppoint3D.Y / (1f - ppoint3D.Z), point.Color == Color.Empty ? Extensions.HsvToRgb(360.0 * (point.Z - (double)p.MinZ) / (p.MaxZ - (double)p.MinZ), 1.0, 1.0) : point.Color, point.Visible)); } return(plot2D); }
public void Invert(ref PPoint3D point, List <PPoint3D> allPoints) { Transform(ref point, allPoints); }
public void Invert(ref PPoint3D point, List <PPoint3D> allPoints) { point.X /= X; point.Y /= Y; point.Z /= Z; }
public void Transform(ref PPoint3D point, List <PPoint3D> allPoints) { point.X *= X; point.Y *= Y; point.Z *= Z; }
public void Invert(ref PPoint3D point, List <PPoint3D> allPoints) { point.X -= X; point.Y -= Y; point.Z -= Z; }
public void Transform(ref PPoint3D point, List <PPoint3D> allPoints) { point.X += X; point.Y += Y; point.Z += Z; }