Back to project page wannabe.
The source code is released under:
MIT License
If you think the Android project wannabe listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
// Copyright 2013 Patrick Forhan. package wannabe.projection; //ww w. j av a 2 s. c o m import wannabe.Camera; import wannabe.Position; import wannabe.Rendered; /** Converts a 3d Position to a 2d coordinate for rendering. */ public interface Projection { /** * Resolves a {@link Position} to a two-dimensional location relative to the specified * {@link Camera} with a height-0 size of {@code pixelSize}. Projections should honor * {@link Camera#uiPosition} to allow the UI to render voxels appropriately. * Implementations may reuse the returned Rendered instance for performance. */ Rendered render(Camera camera, Position position, int pixelSize); }