class_name GodotWorldPosition
extends RefCounted

## Immutable Godot Y-up renderer position.
## One Godot unit equals one WoW yard in the compatibility renderer. X grows
## east, Y grows up and Z grows south from the north-west map extent.

var x_units: float:
	get:
		return _x_units

var y_units: float:
	get:
		return _y_units

var z_units: float:
	get:
		return _z_units

var _x_units: float
var _y_units: float
var _z_units: float


## Creates a renderer position without exposing it as a cross-layer [Vector3].
func _init(x_units_value: float, y_units_value: float, z_units_value: float) -> void:
	_x_units = x_units_value
	_y_units = y_units_value
	_z_units = z_units_value
