Contents
Package com.hypixel.hytale.math.iterator
package com.hypixel.hytale.math.iterator
-
ClassDescriptionThis class does a full block iteration from a position by a direction until it reaches a maximum distance.This functional interface accepts the currently iterating block and also the entry / exit point of the ray.This class allows to iterate an axis-aligned bounding box over a grid of 1x1 cubes.Bresenham 3D implementation DrawLine uses Bresenham's algorithm to generate the 3 dimensional points on a line from (x1, y1, z1) to (x2, y2, z2) in an optimized and fast fashion Original Author: Bob Pendelton, based on Paul Heckbert from "Graphics Gems", Academic Press, 1990Immutable, pre-computed list of (dx, dy, dz) offsets contained in a sphere centred on the origin, sorted ascending by 3D Euclidean distance² from the origin.Mutable position holder returned by
SphereSpiralIterator.position().Iterates the chunk sections inside a sphere centred on a player, in ascending 3D Euclidean distance² order.