Jet  v1.3.3
Public Member Functions | Protected Member Functions | List of all members
jet::ImplicitSurface2 Class Referenceabstract

Abstract base class for 2-D implicit surface. More...

#include <jet/implicit_surface2.h>

Inheritance diagram for jet::ImplicitSurface2:
jet::Surface2 jet::CustomImplicitSurface2 jet::ImplicitSurfaceSet2 jet::SurfaceToImplicit2

Public Member Functions

 ImplicitSurface2 (const Transform2 &transform=Transform2(), bool isNormalFlipped=false)
 Default constructor. More...
 
 ImplicitSurface2 (const ImplicitSurface2 &other)
 Copy constructor. More...
 
virtual ~ImplicitSurface2 ()
 Default destructor. More...
 
double signedDistance (const Vector2D &otherPoint) const
 Returns signed distance from the given point otherPoint. More...
 
- Public Member Functions inherited from jet::Surface2
 Surface2 (const Transform2 &transform=Transform2(), bool isNormalFlipped=false)
 Constructs a surface with normal direction. More...
 
 Surface2 (const Surface2 &other)
 Copy constructor. More...
 
virtual ~Surface2 ()
 Default destructor. More...
 
Vector2D closestPoint (const Vector2D &otherPoint) const
 
BoundingBox2D boundingBox () const
 Returns the bounding box of this surface object. More...
 
bool intersects (const Ray2D &ray) const
 Returns true if the given ray intersects with this surface object. More...
 
double closestDistance (const Vector2D &otherPoint) const
 
SurfaceRayIntersection2 closestIntersection (const Ray2D &ray) const
 Returns the closest intersection point for given ray. More...
 
Vector2D closestNormal (const Vector2D &otherPoint) const
 
virtual void updateQueryEngine ()
 Updates internal spatial query engine. More...
 
virtual bool isBounded () const
 Returns true if bounding box can be defined. More...
 
virtual bool isValidGeometry () const
 Returns true if the surface is a valid geometry. More...
 
bool isInside (const Vector2D &otherPoint) const
 

Protected Member Functions

virtual double signedDistanceLocal (const Vector2D &otherPoint) const =0
 
- Protected Member Functions inherited from jet::Surface2
virtual Vector2D closestPointLocal (const Vector2D &otherPoint) const =0
 
virtual BoundingBox2D boundingBoxLocal () const =0
 Returns the bounding box of this surface object in local frame. More...
 
virtual SurfaceRayIntersection2 closestIntersectionLocal (const Ray2D &ray) const =0
 Returns the closest intersection point for given ray in local frame. More...
 
virtual Vector2D closestNormalLocal (const Vector2D &otherPoint) const =0
 
virtual bool intersectsLocal (const Ray2D &ray) const
 

Additional Inherited Members

- Public Attributes inherited from jet::Surface2
Transform2 transform
 Local-to-world transform. More...
 
bool isNormalFlipped = false
 Flips normal. More...
 

Detailed Description

Abstract base class for 2-D implicit surface.

Constructor & Destructor Documentation

◆ ImplicitSurface2() [1/2]

jet::ImplicitSurface2::ImplicitSurface2 ( const Transform2 transform = Transform2(),
bool  isNormalFlipped = false 
)

Default constructor.

◆ ImplicitSurface2() [2/2]

jet::ImplicitSurface2::ImplicitSurface2 ( const ImplicitSurface2 other)

Copy constructor.

◆ ~ImplicitSurface2()

virtual jet::ImplicitSurface2::~ImplicitSurface2 ( )
virtual

Default destructor.

Member Function Documentation

◆ signedDistance()

double jet::ImplicitSurface2::signedDistance ( const Vector2D otherPoint) const

Returns signed distance from the given point otherPoint.

◆ signedDistanceLocal()

virtual double jet::ImplicitSurface2::signedDistanceLocal ( const Vector2D otherPoint) const
protectedpure virtual

Returns signed distance from the given point otherPoint in local space.

Implemented in jet::SurfaceToImplicit2.


The documentation for this class was generated from the following file: