runelite-api/src/main/java/net/runelite/api/model/Vertex.java
/**
	 * Rotate the vertex by the given orientation
	 * @param orientation
	 * @return the newly rotated vertex
	 */
Rotate the vertex by the given orientation
@param orientation
@return the newly rotated vertex
Rotate the vertex by the given orientation @param orientation @return the newly rotated vertex
public Vertex rotate(int orientation)
	{
		orientation = (orientation + 1024) % 2048;
		if (orientation == 0)
		{
			return this;
		}
		int sin = Perspective.SINE[orientation];
		int cos = Perspective.COSINE[orientation];
		return new Vertex(
			x * cos + z * sin >> 16,
			y,
			z * cos - x * sin >> 16
		);
	}
public Vertex rotate ( int orientation ) { orientation = ( orientation + 1024 ) % 2048 ; if ( orientation == 0 ) { return this ; } int sin = Perspective . SINE [ orientation ] ; int cos = Perspective . COSINE [ orientation ] ; return new Vertex ( x * cos + z * sin >> 16 , y , z * cos - x * sin >> 16 ) ; }
Rotate the vertex by the given orientation
 @param orientation
 @return the newly rotated vertex
Rotate the vertex by the given orientation @param orientation @return the newly rotated vertex
// models are orientated north (1024) and there are 2048 angles total