private CRSTransform(CRSTransform toCopy) { Name = toCopy.Name; sourceTransform = toCopy.sourceTransform; right = toCopy.right; up = toCopy.up; forward = toCopy.forward; global = new Transform(toCopy.global); }
private CRSTransform(CRSTransform source, string name) { Name = name; sourceTransform = source; if (null != source) { right = source.right; up = source.up; forward = source.forward; global = new Transform(source.Transform); } }
static internal AssociativeNode BuildCRSTransformNode(CRSTransform transform, AssociativeNode sourceTransform) { if (null != transform) { return(AstFactory.BuildFunctionCall( new Func <string, CRSTransform, string, string, string, CRSTransform>(CRSTransform.ByData), new List <AssociativeNode>() { AstFactory.BuildStringNode(transform.Name), sourceTransform, BuildEnumNameNode(transform.Right), BuildEnumNameNode(transform.Up), BuildEnumNameNode(transform.Forward) })); } else { return(AstFactory.BuildNullNode()); } }