Skip to content

Vector addition/subtraction directly to Sprites and Rects in assignment operators #2186

@FirTreeMan

Description

@FirTreeMan

Currently, you can't perform addition/subtraction with Vectors and Rects (or Sprites with a .rect property) like sprite/rect += vector. This is more readable and concise than something like sprite.rect.center += vector. I understand this is a very trivial thing but I'd just like to hear some, if any, problems that mean I shouldn't submit a pull request for this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions