mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-21 06:05:45 +08:00
Performance improvement
This commit is contained in:
@@ -262,4 +262,8 @@ export default class Utility {
|
||||
r * Math.sin(theta)
|
||||
]
|
||||
}
|
||||
|
||||
static range(begin, end, step = 1) {
|
||||
return Array.from({ length: Math.ceil((end - begin) / step) }, (_, i) => begin + (i * step))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user