
clarifai2.dto.PointF Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Clarifai Java API Client
The newest version!
package clarifai2.dto;
import com.google.auto.value.AutoValue;
import org.jetbrains.annotations.NotNull;
@SuppressWarnings("NullableProblems")
@AutoValue
public abstract class PointF {
PointF() {} // AutoValue instances only
@NotNull public static PointF at(float x, float y) {
return new AutoValue_PointF(x, y);
}
public abstract float x();
public abstract float y();
@NotNull public final PointF translated(float translateX, float translateY) {
return new AutoValue_PointF(x() + translateX, y() + translateY);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy