Beispiel #1
0
        protected GraphicBase(GraphicBase from)
        {
            if (null == from)
            {
                throw new ArgumentNullException(nameof(from));
            }

            _location = from._location.Clone();
            _location.ParentObject = this;

            CopyFrom(from);
        }
 /// <summary>
 /// Creates a new HitTestObject.
 /// </summary>
 /// <param name="parent">The hitted object.</param>
 /// <param name="localToWorldTransformation">The transformation that transformes from the coordinate space in which the hitted object is embedded to world coordinates. This is usually the transformation from the layer coordinates to the root layer coordinates, but does not include the object's transformation.</param>
 public GraphicBaseHitTestObject(GraphicBase parent, Matrix4x3 localToWorldTransformation)
     : base(parent, localToWorldTransformation)
 {
 }