All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.skjolber.packing.ep.points3d.DefaultPoint3D Maven / Gradle / Ivy

There is a newer version: 3.0.9
Show newest version
package com.github.skjolber.packing.ep.points3d;

import java.util.ArrayList;
import java.util.List;

import com.github.skjolber.packing.api.Placement3D;
import com.github.skjolber.packing.api.ep.Point2D;
import com.github.skjolber.packing.api.ep.Point3D;

public class DefaultPoint3D

extends Point3D

{ public DefaultPoint3D(int minX, int minY, int minZ, int maxX, int maxY, int maxZ) { super(minX, minY, minZ, maxX, maxY, maxZ); } @Override public Point3D

clone(int maxX, int maxY, int maxZ) { return new DefaultPoint3D<>(minX, minY, minZ, maxX, maxY, maxZ); } @Override public Point2D

clone(int maxX, int maxY) { return clone(maxX, maxY, this.maxZ); } @Override public List

getPlacements3D() { List

list = new ArrayList<>(); return list; } @Override public List

getPlacements2D() { List

list = new ArrayList<>(); return list; } @Override public DefaultPoint3D

clone() { return new DefaultPoint3D<>(minX, minY, minZ, maxX, maxY, maxZ); } @Override public Point3D

moveX(int x, int maxX, int maxY, int maxZ) { return new DefaultPoint3D<>(x, minY, minZ, maxX, maxY, maxZ); } @Override public Point3D

moveX(int x, int maxX, int maxY, int maxZ, P yzSupport) { return new DefaultYZPlanePoint3D<>(x, minY, minZ, maxX, maxY, maxZ, yzSupport); } @Override public Point3D

moveY(int y, int maxX, int maxY, int maxZ) { return new DefaultPoint3D<>(minX, y, minZ, maxX, maxY, maxZ); } @Override public Point3D

moveY(int y, int maxX, int maxY, int maxZ, P xzSupport) { return new DefaultXZPlanePoint3D<>(minX, y, minZ, maxX, maxY, maxZ, xzSupport); } @Override public Point3D

moveZ(int z, int maxX, int maxY, int maxZ) { return new DefaultPoint3D<>(minX, minY, z, maxX, maxY, maxZ); } @Override public Point3D

moveZ(int z, int maxX, int maxY, int maxZ, P xySupport) { return new DefaultXYPlanePoint3D<>(minX, minY, z, maxX, maxY, maxZ, xySupport); } /** * Rotate box, i.e. in 3D * * @return this instance */ @Override public Point3D

rotate() { return new DefaultPoint3D<>(minY, minZ, minX, maxY, maxZ, maxX); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy