public class Sphere extends Object implements Serializable
public float radius
public final Vector3 center
public Sphere(Vector3 center, float radius)
center
- The centerradius
- The radiuspublic boolean overlaps(Sphere sphere)
sphere
- the other spherepublic float volume()
public float surfaceArea()
Copyright © 2015. All rights reserved.