Classes |
Public Member Functions |
Static Public Member Functions |
Public Attributes |
List of all members
CubbyFlow::Sphere2 Class Referencefinal
2-D sphere geometry. More...
#include <Core/Geometry/Sphere2.h>
Inheritance diagram for CubbyFlow::Sphere2:
Classes | |
| class | Builder |
| Front-end to create Sphere2 objects step by step. More... | |
Public Member Functions | |
| Sphere2 (const Transform2 &transform=Transform2(), bool isNormalFlipped=false) | |
| Constructs a sphere with center at (0, 0) and radius of 1. More... | |
| Sphere2 (const Vector2D ¢er, double radius, const Transform2 &transform=Transform2(), bool isNormalFlipped=false) | |
Constructs a sphere with center and radius. More... | |
| Sphere2 (const Sphere2 &other) | |
| Copy constructor. More... | |
Public Member Functions inherited from CubbyFlow::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 |
Returns the closest point from the given point otherPoint to the surface. More... | |
| 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... | |
Static Public Member Functions | |
| static Builder | GetBuilder () |
| Returns builder fox Sphere2. More... | |
Public Attributes | |
| Vector2D | center |
| Center of the sphere. More... | |
| double | radius = 1.0 |
| Radius of the sphere. More... | |
Public Attributes inherited from CubbyFlow::Surface2 | |
| Transform2 | transform |
| Local-to-world transform. More... | |
| bool | isNormalFlipped = false |
| Flips normal. More... | |
Additional Inherited Members |
Detailed Description
2-D sphere geometry.
This class represents 2-D sphere geometry which extends Surface2 by overriding surface-related queries.
Constructor & Destructor Documentation
◆ Sphere2() [1/3]
| CubbyFlow::Sphere2::Sphere2 | ( | const Transform2 & | transform = Transform2(), |
| bool | isNormalFlipped = false |
||
| ) |
Constructs a sphere with center at (0, 0) and radius of 1.
◆ Sphere2() [2/3]
| CubbyFlow::Sphere2::Sphere2 | ( | const Vector2D & | center, |
| double | radius, | ||
| const Transform2 & | transform = Transform2(), |
||
| bool | isNormalFlipped = false |
||
| ) |
Constructs a sphere with center and radius.
◆ Sphere2() [3/3]
| CubbyFlow::Sphere2::Sphere2 | ( | const Sphere2 & | other | ) |
Copy constructor.
Member Function Documentation
◆ GetBuilder()
Member Data Documentation
◆ center
| Vector2D CubbyFlow::Sphere2::center |
Center of the sphere.
◆ radius
| double CubbyFlow::Sphere2::radius = 1.0 |
Radius of the sphere.
The documentation for this class was generated from the following file:
- Core/Geometry/Sphere2.h
Public Member Functions inherited from
1.8.14