Skip to content

New-member-20 2d Vector Translation on an (in)Finite Plane #93

@coudrew

Description

@coudrew

Create a function that returns the sum of 2 vectors BUT the returned vector must be within the bounds of a 10*10 area. Results outside the bounds should "wrap around" to stay inside. For example:
translate2D([5,7],[2,-1]) //should return [7,6]
translate2D([8,9],[3,5]) //should return [1,4]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions