Package toxi.geom
Class Cone
java.lang.Object
toxi.geom.Vec3D
toxi.geom.Cone
- All Implemented Interfaces:
Comparable<ReadonlyVec3D>
,ReadonlyVec3D
A geometric definition of a cone (and cylinder as a special case) with
support for mesh creation/representation. The class is currently still
incomplete in that it doesn't provide any other features than the
construction of a cone shaped mesh.
-
Nested Class Summary
Nested classes/interfaces inherited from class toxi.geom.Vec3D
Vec3D.Axis
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCone
(ReadonlyVec3D pos, ReadonlyVec3D dir, float rNorth, float rSouth, float len) Constructs a new cone instance. -
Method Summary
Methods inherited from class toxi.geom.Vec3D
abs, add, add, add, addSelf, addSelf, addSelf, angleBetween, angleBetween, clear, compareTo, constrain, constrain, copy, cross, cross, crossInto, crossSelf, distanceTo, distanceToSquared, dot, dot, equals, equals, equalsWithTolerance, floor, frac, fromXYTheta, fromXZTheta, fromYZTheta, getAbs, getCartesian, getClosestAxis, getComponent, getComponent, getConstrained, getFloored, getFrac, getInverted, getLimited, getMapped, getNormalized, getNormalizedTo, getReciprocal, getReflected, getRotatedAroundAxis, getRotatedX, getRotatedY, getRotatedZ, getRoundedTo, getSignum, getSpherical, hashCode, headingXY, headingXZ, headingYZ, immutable, interpolateTo, interpolateTo, interpolateTo, interpolateTo, interpolateToSelf, interpolateToSelf, invert, isInAABB, isInAABB, isMajorAxis, isZeroVector, jitter, jitter, jitter, jitter, jitter, jitter, limit, magnitude, magSquared, max, maxSelf, min, minSelf, modSelf, modSelf, normalize, normalizeTo, randomVector, randomVector, reciprocal, reflect, rotateAroundAxis, rotateX, rotateY, rotateZ, roundTo, scale, scale, scale, scale, scaleSelf, scaleSelf, scaleSelf, scaleSelf, set, set, set, setComponent, setComponent, setX, setXY, setY, setZ, shuffle, signum, snapToAxis, sub, sub, sub, subSelf, subSelf, subSelf, to2DXY, to2DXZ, to2DYZ, to4D, to4D, toArray, toArray4, toCartesian, toSpherical, toString, x, y, z
-
Field Details
-
dir
-
radiusSouth
public float radiusSouth -
radiusNorth
public float radiusNorth -
length
public float length
-
-
Constructor Details
-
Cone
Constructs a new cone instance.- Parameters:
pos
- centre positiondir
- directionrNorth
- radius on the side in the forward directionrSouth
- radius on the side in the opposite directionlen
- length of the cone
-
-
Method Details
-
toMesh
-
toMesh
-
toMesh
-