Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ParametricRange{
- constructor(xRange,yRange){
- this.XRange = xRange;
- this.YRange = yRange;
- }
- CalcXI(pct){
- return this.XRange.FromPercent(pct);
- }
- CalcYI(pct){
- return this.YRange.FromPercent(pct);
- }
- CalcI(pct){
- let x = this.CalcXI(pct);
- let y = this.CalcYI(pct);
- return new Engine.Vector2(x,y);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement