示例#1
0
        /// <summary>
        /// Create the specified center, radiusX and radiusY.
        /// </summary>
        /// <param name="center">Center.</param>
        /// <param name="radiusX">Radius x.</param>
        /// <param name="radiusY">Radius y.</param>
        public static LW_Ellipse Create(Vector2 center = default(Vector2), float radiusX = 20f, float radiusY = 20f)
        {
            LW_Ellipse instance = CreateInstance <LW_Ellipse>();

            instance.Set(center, radiusX, radiusY);
            return(instance);
        }
示例#2
0
        internal override void CopyPropertiesFrom(LW_Element element)
        {
            LW_Ellipse ellipse = element as LW_Ellipse;

            if (ellipse != null)
            {
                m_Center  = ellipse.m_Center;
                m_RadiusX = ellipse.m_RadiusX;
                m_RadiusY = ellipse.m_RadiusY;
            }
            base.CopyPropertiesFrom(element);
        }