2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.hue.internal.dto.clip2;
16 * DTO that contains an x and y pair of doubles.
18 * @author Andrew Fiddian-Green - Initial contribution
24 public double[] getXY() {
25 return new double[] { x, y };
28 public PairXy setXY(double[] xy) {
29 x = xy.length > 0 ? xy[0] : 0f;
30 y = xy.length > 1 ? xy[1] : 0f;