/// <summary> /// Creates an instance of the FreeFormObject with specified parameters. /// </summary> /// <param name="x">The X coordinate</param> /// <param name="y">The Y coordinate</param> /// <param name="width">The Width</param> /// <param name="height">The Height</param> /// <param name="angle">The rotation angle</param> public FreeFormObject(float x, float y, float width = 30.0f, float height = 30.0f, float angle = 0.0f) { _type = FreeFormType.Rectangle; _x = x; _y = y; _width = width; _height = height; _angle = angle; }
/// <summary> /// Creates a default instance of the FreeFormObject /// </summary> public FreeFormObject() { _type = FreeFormType.Rectangle; _x = 0; _y = 0; _width = 30; _height = 30; _angle = 0.0f; }