/// <summary> /// Create the specified center and radius. /// </summary> /// <param name="center">Center.</param> /// <param name="radius">Radius.</param> public static LW_Circle Create(Vector2 center = default(Vector2), float radius = 40f) { LW_Circle instance = CreateInstance <LW_Circle>(); instance.Set(center, radius); return(instance); }
internal override void CopyPropertiesFrom(LW_Element element) { LW_Circle circle = element as LW_Circle; if (circle != null) { m_Center = circle.m_Center; m_Radius = circle.m_Radius; } base.CopyPropertiesFrom(element); }