public final class Cylinder extends java.lang.Object implements IVolume<Cylinder>
| Constructor and Description |
|---|
Cylinder(Vec3 bottom,
float radius,
float height) |
| Modifier and Type | Method and Description |
|---|---|
Cylinder |
addScale(Cylinder current,
Cylinder next,
float t) |
Cylinder |
clone() |
Cylinder |
concatenate(Cylinder other)
Concatenate this volume with other in a new
IVolume object |
float |
distanceToPlane(Plane plane,
boolean min) |
static Cylinder |
empty() |
Vec3 |
getBottom(Vec3 dst) |
Vec3 |
getCenter(Vec3 dst) |
float |
getHeight() |
float |
getRadius() |
Vec3 |
getTop(Vec3 dst) |
float |
getVolume() |
boolean |
insideFrustum(Frustum frustum) |
Cylinder |
interpolate(Cylinder current,
Cylinder next,
float t)
Interpolate
current and next and store result in this. |
IntersectTest |
intersectTest(Cylinder c) |
IntersectTest |
intersectTest(Frustum frustum)
Test the intersection between this
IBoundingVolume and the specified Frustum. |
Vec3 |
limitInVolume(Vec3 dst,
Vec3 src)
Limit a point location in this volume.
|
Cylinder |
set(Cylinder s) |
void |
set(Vec3 center,
float radius,
float height) |
void |
setBottom(Vec3 src) |
void |
setHeight(float height) |
void |
setRadius(float radius) |
Cylinder |
subtract(Cylinder bv1,
Cylinder bv2) |
java.lang.String |
toString() |
Cylinder |
transform(Cylinder bc,
Mat4x4 matrix) |
public Cylinder(Vec3 bottom, float radius, float height)
public static Cylinder empty()
public final java.lang.String toString()
toString in class java.lang.Objectpublic final Cylinder clone()
public final Cylinder set(Cylinder s)
set in interface IValueCopy<Cylinder>public final float getVolume()
public final Cylinder concatenate(Cylinder other)
IVolumeIVolume objectconcatenate in interface IVolume<Cylinder>other - a IBoundingVolumeVolumes.concatenate(IVolume, IVolume)public final Vec3 limitInVolume(Vec3 dst, Vec3 src)
limitInVolume in interface IVolume<Cylinder>src - source pointdst - destination vector to store the resultpublic IntersectTest intersectTest(Cylinder c)
intersectTest in interface IVolume<Cylinder>c - another volumepublic final Cylinder interpolate(Cylinder current, Cylinder next, float t)
IInterpolablecurrent and next and store result in this.interpolate in interface IInterpolable<Cylinder>interpolate in interface IData<Cylinder>interpolate in interface IVolume<Cylinder>current - a IBoundingVolumenext - a IBoundingVolumet - value in range [0;1]public final boolean insideFrustum(Frustum frustum)
insideFrustum in interface IVolume<Cylinder>Frustum.public final IntersectTest intersectTest(Frustum frustum)
IVolumeIBoundingVolume and the specified Frustum.intersectTest in interface IVolume<Cylinder>VolumeIntersection.Intersect if inside and intersect.VolumeIntersection.Inside if inside but not intersect.VolumeIntersection.Outisde if outside.IntersectTest,
IVolume.insideFrustum(Frustum)public final float distanceToPlane(Plane plane, boolean min)
distanceToPlane in interface IVolume<Cylinder>plane - a Planemin - true: minimum distancepublic final void set(Vec3 center, float radius, float height)
public final void setBottom(Vec3 src)
public final float getRadius()
public final void setRadius(float radius)
public final float getHeight()
public final void setHeight(float height)
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com