public class OrientedVolume extends java.lang.Object implements IVolume<OrientedVolume>
| Modifier and Type | Method and Description |
|---|---|
OrientedVolume |
addScale(OrientedVolume current,
OrientedVolume next,
float t) |
OrientedVolume |
clone() |
IVolume<?> |
concatenate(OrientedVolume other)
Concatenate this volume with other in a new
IVolume object |
float |
distanceToPlane(Plane plane,
boolean min) |
IVolume |
getAxisAlignedVolume() |
float |
getVolume() |
boolean |
insideFrustum(Frustum frustum) |
OrientedVolume |
interpolate(OrientedVolume current,
OrientedVolume next,
float t)
Interpolate
current and next and store result in this. |
IntersectTest |
intersectTest(Frustum frustum)
Test the intersection between this
IVolume and the specified Frustum. |
IntersectTest |
intersectTest(OrientedVolume other) |
IntersectTest |
intersectTest(Plane plane)
Test the intersection between this
IVolume and the specified Frustum. |
Vec3 |
limitInVolume(Vec3 dst,
Vec3 src)
Limit a point in this volume.
|
static IVolume |
of(IVolume volume,
ITransformable transformable) |
static IVolume |
of(IVolume volume,
Mat4x4 matrix) |
static IVolume |
of(IVolume volume,
Transform t) |
OrientedVolume |
set(OrientedVolume src) |
OrientedVolume |
subtract(OrientedVolume bv1,
OrientedVolume bv2) |
java.lang.String |
toString() |
OrientedVolume |
transform(OrientedVolume volume,
Mat4x4 matrix) |
public static IVolume of(IVolume volume, ITransformable transformable)
public final java.lang.String toString()
toString in class java.lang.Objectpublic final OrientedVolume clone()
clone in interface IData<OrientedVolume>clone in interface IValueCopy<OrientedVolume>clone in interface IVolume<OrientedVolume>clone in class java.lang.Objectpublic final OrientedVolume set(OrientedVolume src)
set in interface IValueCopy<OrientedVolume>public final float getVolume()
getVolume in interface IVolume<OrientedVolume>OrientedVolumepublic final OrientedVolume transform(OrientedVolume volume, Mat4x4 matrix)
transform in interface IVolume<OrientedVolume>volume - a IVolumematrix - a Mat4x4public final IVolume<?> concatenate(OrientedVolume other)
IVolumeIVolume objectconcatenate in interface IVolume<OrientedVolume>other - a IVolumeVolumes.concatenate(IVolume, IVolume)public final Vec3 limitInVolume(Vec3 dst, Vec3 src)
IVolumelimitInVolume in interface IVolume<OrientedVolume>dst - destination vector to store the resultsrc - source pointpublic IntersectTest intersectTest(OrientedVolume other)
intersectTest in interface IVolume<OrientedVolume>other - another volumepublic final OrientedVolume interpolate(OrientedVolume current, OrientedVolume next, float t)
IInterpolablecurrent and next and store result in this.interpolate in interface IInterpolable<OrientedVolume>interpolate in interface IData<OrientedVolume>interpolate in interface IVolume<OrientedVolume>current - a IVolumenext - a IVolumet - value in range [0;1]public final OrientedVolume addScale(OrientedVolume current, OrientedVolume next, float t)
addScale in interface IVolume<OrientedVolume>current - a IVolumenext - a IVolumepublic OrientedVolume subtract(OrientedVolume bv1, OrientedVolume bv2)
subtract in interface IVolume<OrientedVolume>bv1 - a IVolumebv2 - a IVolumepublic final IntersectTest intersectTest(Frustum frustum)
IVolumeIVolume and the specified Frustum.intersectTest in interface IVolume<OrientedVolume>VolumeIntersection.Intersect if inside and intersect.VolumeIntersection.Inside if inside but not intersect.VolumeIntersection.Outisde if outside.IntersectTest,
IVolume.insideFrustum(Frustum)public final IntersectTest intersectTest(Plane plane)
IVolumeIVolume and the specified Frustum.intersectTest in interface IVolume<OrientedVolume>VolumeIntersection.Intersect if inside and intersect.VolumeIntersection.Inside if inside but not intersect.VolumeIntersection.Outisde if outside.IntersectTest,
IVolume.insideFrustum(Frustum)public final boolean insideFrustum(Frustum frustum)
insideFrustum in interface IVolume<OrientedVolume>Frustum.public final float distanceToPlane(Plane plane, boolean min)
distanceToPlane in interface IVolume<OrientedVolume>plane - a Planemin - true: minimum distancepublic IVolume getAxisAlignedVolume()
Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com