Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

User wants to have switch statement #28

Open
nidin opened this issue Mar 30, 2017 · 0 comments
Open

User wants to have switch statement #28

nidin opened this issue Mar 30, 2017 · 0 comments

Comments

@nidin
Copy link
Contributor

nidin commented Mar 30, 2017

What?
User wants to have ecmascript switch statement

How?

switch (axis) {
    case Axis.AxisX:
        left = this.min.x <= point;
        right = this.max.x >= point;
        break;
    case Axis.AxisY:
        left = this.min.y <= point;
        right = this.max.y >= point;
        break;
    case Axis.AxisZ:
        left = this.min.z <= point;
        right = this.max.z >= point;
        break;
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant