Support Forum G3D Web Page |
Inherits G3D::Shape.
Public Member Functions | |
RayShape (const G3D::Ray &r) | |
virtual float | area () const |
Surface area of the outside of this object. More... | |
virtual CoordinateFrame & | axes () |
virtual AABox | boundingAABox () const |
Bounds the graphic representation of the ray. More... | |
virtual Sphere | boundingSphere () const |
Bounds the graphic representation of the ray. More... | |
virtual Box & | box () |
virtual const Box & | box () const |
virtual Capsule & | capsule () |
virtual const Capsule & | capsule () const |
virtual Vector3 | center () const |
Set to origin of ray. More... | |
virtual Cylinder & | cylinder () |
virtual const Cylinder & | cylinder () const |
virtual void | getRandomSurfacePoint (Vector3 &P, Vector3 &N=Vector3::ignore, Random &rnd=Random::common()) const |
Returns a point along the ray. More... | |
virtual const Array< int > & | indexArray () const |
virtual Plane & | plane () |
virtual const Plane & | plane () const |
virtual Vector3 & | point () |
virtual const Vector3 & | point () const |
virtual Vector3 | randomInteriorPoint (Random &rnd=Random::common()) const |
Returns a random point along the ray. More... | |
virtual Ray & | ray () |
virtual const Ray & | ray () const |
virtual void | render (RenderDevice *rd, const CoordinateFrame &cframe, Color4 solidColor=Color4(.5,.5, 0,.5), Color4 wireColor=Color3::black()) |
virtual Sphere & | sphere () |
virtual const Sphere & | sphere () const |
virtual Triangle & | triangle () |
virtual const Triangle & | triangle () const |
virtual Type | type () const |
virtual const Array< Vector3 > & | vertexArray () const |
virtual float | volume () const |
Volume of the interior of this object. More... | |
Static Public Member Functions | |
static String | typeToString (Type t) |
Static Protected Member Functions | |
template<class T , class ... ArgTypes> | |
static shared_ptr< T > | createShared (ArgTypes &&... args) |
Like std::make_shared, but works for protected constructors. More... | |
|
inlineexplicit |
|
inlinevirtual |
Surface area of the outside of this object.
Implements G3D::Shape.
|
inlinevirtualinherited |
Reimplemented in G3D::AxesShape.
|
inlinevirtual |
Bounds the graphic representation of the ray.
Implements G3D::Shape.
|
inlinevirtual |
Bounds the graphic representation of the ray.
Implements G3D::Shape.
|
inlinevirtualinherited |
Reimplemented in G3D::BoxShape.
|
inlinevirtualinherited |
Reimplemented in G3D::BoxShape.
|
inlinevirtualinherited |
Reimplemented in G3D::CapsuleShape.
|
inlinevirtualinherited |
Reimplemented in G3D::CapsuleShape.
|
inlinevirtual |
Set to origin of ray.
Implements G3D::Shape.
|
inlinestaticprotectedinherited |
Like std::make_shared, but works for protected constructors.
Call as createShared<myclass>.
|
inlinevirtualinherited |
Reimplemented in G3D::CylinderShape.
|
inlinevirtualinherited |
Reimplemented in G3D::CylinderShape.
|
inlinevirtual |
|
inlinevirtualinherited |
Reimplemented in G3D::MeshShape.
|
inlinevirtualinherited |
Reimplemented in G3D::PlaneShape.
|
inlinevirtualinherited |
Reimplemented in G3D::PlaneShape.
|
inlinevirtualinherited |
Reimplemented in G3D::PointShape.
|
inlinevirtualinherited |
Reimplemented in G3D::PointShape, and G3D::ArrowShape.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from G3D::Shape.
|
inlinevirtual |
Reimplemented from G3D::Shape.
|
virtual |
Implements G3D::Shape.
|
inlinevirtualinherited |
Reimplemented in G3D::SphereShape.
|
inlinevirtualinherited |
Reimplemented in G3D::SphereShape.
|
inlinevirtualinherited |
Reimplemented in G3D::TriangleShape.
|
inlinevirtualinherited |
Reimplemented in G3D::TriangleShape.
|
inlinevirtual |
Implements G3D::Shape.
Reimplemented in G3D::MeshShape.
|
inlinevirtual |
Volume of the interior of this object.
Implements G3D::Shape.