Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Units library #56

Open
CrispyBacon1999 opened this issue May 23, 2023 · 0 comments
Open

Units library #56

CrispyBacon1999 opened this issue May 23, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@CrispyBacon1999
Copy link
Owner

Description

Create (or find) a library for handling unit conversions. This will prevent units from being converted more than once, and gives a straight up value that can be used to pass in properties to components.

Example

const robotWidth: Distance = Units.inches(32);

const robotWidthMeters = robotWidth.meters;

return <RobotRepresentation width={robotWidth} />
@CrispyBacon1999 CrispyBacon1999 added the enhancement New feature or request label May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant