Sha256: e9559a9d9fe53d90cff45fedb518f82c7d7fea57303e07a2fd0045d9662463eb

Contents?: true

Size: 628 Bytes

Versions: 6

Compression:

Stored size: 628 Bytes

Contents

package org.sunflow.math;

public final class Point2 {

    public float x, y;

    public Point2() {
    }

    public Point2(float x, float y) {
        this.x = x;
        this.y = y;
    }

    public Point2(Point2 p) {
        x = p.x;
        y = p.y;
    }

    public final Point2 set(float x, float y) {
        this.x = x;
        this.y = y;
        return this;
    }

    public final Point2 set(Point2 p) {
        x = p.x;
        y = p.y;
        return this;
    }

    @Override
    public final String toString() {
        return String.format("(%.2f, %.2f)", x, y);
    }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
joonsrenderer-1.3.1-java src/main/java/org/sunflow/math/Point2.java
joonsrenderer-1.2.0-java src/main/java/org/sunflow/math/Point2.java
joonsrenderer-1.1.3-java src/main/java/org/sunflow/math/Point2.java
joonsrenderer-1.1.2-java src/main/java/org/sunflow/math/Point2.java
joonsrenderer-1.1.1-java src/main/java/org/sunflow/math/Point2.java
joonsrenderer-1.1-java src/main/java/org/sunflow/math/Point2.java