line location with input origin