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

com.graphbuilder.struc.Stack Maven / Gradle / Ivy

Go to download

Implementation of various mathematical curves that define themselves over a set of control points. The API is written in Java. The curves supported are: Bezier, B-Spline, Cardinal Spline, Catmull-Rom Spline, Lagrange, Natural Cubic Spline, and NURBS.

There is a newer version: 1.08
Show newest version
package com.graphbuilder.struc;

public class Stack extends LinkedList {

	public Stack() {}

	public Object peek() {
		if (head == null)
			return null;

		return head.userObject;
	}

	public Object pop() {
		return removeHead();
	}

	public void push(Object o) {
		addToHead(o);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy