public static PovColor _RGB(PovNumber red, PovNumber green, PovNumber blue) => new PovColor(red, green, blue);
private static PovNumber NumberOp(string symbol, PovNumber num1, PovNumber num2, double newValue) { var result = new PovNumber($"({num1.Name??num1.ToPovCode()} {symbol} {num2.Name??num2.ToPovCode()})", newValue); return(result); }
public PovVector(PovNumber x, PovNumber y, PovNumber z) : this(null, x, y, z) { }
public PovVector(int x, int y, int z) : base(null) { X = x; Y = y; Z = z; }
public PovVector(string name, PovNumber x, PovNumber y, PovNumber z) : base(name) { X = x; Y = y; Z = z; }
public PovColor(PovNumber red, PovNumber green, PovNumber blue) : this(null, red, green, blue) { }
public PovColor(string name, PovNumber red, PovNumber green, PovNumber blue) : base(name) { Red = red; Green = green; Blue = blue; }
public Point2D(PovNumber x, PovNumber y) : this(null, x, y) { }
public Point2D(string name, PovNumber x, PovNumber y) : base(name) { X = x; Y = y; }