main/src/georegression/struct/shapes/BoxLength3D_F64.java
public Point3D_F64 getCorner(int index , Point3D_F64 corner ) {
		if( corner == null )
			corner = new Point3D_F64();

		corner.set(p);

		if( (index & 0x01) != 0 ) {
			corner.x += lengthX;
		}
		if( (index & 0x02) != 0 ) {
			corner.y += lengthY;
		}
		if( (index & 0x04) != 0 ) {
			corner.z += lengthZ;
		}
		return corner;
	}
public Point3D_F64 getCorner(int index , Point3D_F64 corner ) {
		if( corner == null )
			corner = new Point3D_F64();

		corner.set(p);

		if( (index & 0x01) != 0 ) {
			corner.x += lengthX;
		}
		if( (index & 0x02) != 0 ) {
			corner.y += lengthY;
		}
		if( (index & 0x04) != 0 ) {
			corner.z += lengthZ;
		}
		return corner;
	}
Used to retrieve the corners of the box.

@param index A value from 0 to 7
@param corner (Optional) storage for the corner. If null a new point will be declared
@return The corner.