izurvive sdk
1.0.0
iZurvive usa sistema de coordenadas geográficas (latitude, longitude) diferente do sistema de coordenadas do jogo DayZ
Além disso, a Transformação depende do Mapa DayZ.
Use IzurviveTransformation
para transformar entre estes sistemas de coordenadas:
const { IzurviveTransformation } = require ( './lib/izurvive' )
const { Point , Coordinate } = require ( './lib/model' )
// Transform the DayZ Coordinate 1500 2500 on Chernarus Plus to iZurvive Coordinates
const dayzPoint = new Point ( 1500 , 2500 )
const transformation = IzurviveTransformation . chernarusPlus ( )
const izurviveCoordinate = transformation . dayzPointToIzurviveCoordinate ( dayzPoint )
const { IzurviveTransformation } = require ( './lib/izurvive' )
const { Point , Coordinate } = require ( './lib/model' )
// Transform the iZurvive Coordinate (-50, 30) to DayZ Coordinates on Livonia
const izurviveCoordinate = new Coordinate ( - 50 , 30 )
const transformation = IzurviveTransformation . livonia ( )
const dayzPoint = transformation . izurviveCoordinateToDayzPoint ( izurviveCoordinate )