Depiction Engine For Unity 2023.0 (Alpha)
Loading...
Searching...
No Matches
DepictionEngine.GeometricGrid2D Class Reference

Public Member Functions

bool UpdateGeometricGridFields (Vector2Int gridDimensions, GeoCoordinate2Double geoCenter, GeoAstroObject parentGeoAstroObject, bool updateDerivedProperties=true)
 
- Public Member Functions inherited from DepictionEngine.Grid2D
void Init (CameraGrid2D cameraGrid2D)
 
Grid2D IsInGrid (Vector2Int grid2DIndex, Vector2Int grid2DDimensions)
 
bool UpdateGridFields (Vector2Int gridDimensions, GeoCoordinate2Double geoCenter, bool updateDerivedProperties=true)
 
override bool UpdateGrid ()
 
void IterateOverIndexes (Action< IGrid2D, GeoCoordinate2Double, Vector2Int, Vector2Int > callback)
 
override void Clear ()
 
- Public Member Functions inherited from DepictionEngine.GridBase
virtual GridBase Init ()
 
bool SetEnabled (bool value)
 
virtual bool UpdateGrid ()
 
virtual void Clear ()
 
bool UpdateGrid ()
 
Grid2D IsInGrid (Vector2Int grid2DIndex, Vector2Int grid2DDimensions)
 
void IterateOverIndexes (Action< IGrid2D, GeoCoordinate2Double, Vector2Int, Vector2Int > callback)
 

Protected Member Functions

virtual double GetRotation ()
 
virtual bool GetCornerFromIndex (ref Vector3Double corner, int i, double depthOffset=0.0d)
 
override bool UpdateDerivedProperties ()
 
override bool UpdateGrid (Vector2Int gridDimensions)
 
virtual bool AddRangesToRow (int y, Vector2Int gridDimensions, bool isSpherical)
 
virtual int AddInnerIntersections (ref List< Vector2Double > intersections, Vector3Double gridYLocalPosition, bool isSpherical)
 
virtual int AddEdgeIntersections (ref List< Vector2Double > intersections, Vector2Int gridDimensions, Vector3Double center, double circleRadius, bool isSpherical)
 
int AddValidIntersections (ref List< Vector2Double > intersections, Vector2Int gridDimensions, Vector3Double[] points, bool isSpherical, bool inner=true, double intersectionThreshold=0.0d)
 
int AddValidIntersection (ref List< Vector2Double > intersections, Vector2Int gridDimensions, Vector3Double point, bool isSpherical, double intersectionThreshold=0.0d)
 
virtual bool PointIsInside (Vector3Double point, bool isSpherical, double intersectionThreshod=0.0d)
 
- Protected Member Functions inherited from DepictionEngine.Grid2D
Row CreateRow (int y, int start, int end)
 
Row CreateRow (int y)
 
void SetRowStaticProperties ()
 
int GetRowCount ()
 
Row GetRow (int y, Vector2Int gridDimensions)
 
void AddRow (int y, Row value)
 
void IterateOverRows (Action< Row > callback)
 
virtual bool UpdateGrid (Vector2Int gridDimensions)
 
override bool UpdateDerivedProperties ()
 
virtual bool UpdateDerivedProperties ()
 

Protected Attributes

double _scaleFactor
 
Vector3Double _centerLocalPosition
 
Matrix4x4Double _geoAstroObjectToGridMatrix
 
Matrix4x4Double _gridToGeoAstroObjectMatrix
 
QuaternionDouble _gridRotation
 
- Protected Attributes inherited from DepictionEngine.Grid2D
Vector2Double _centerIndex
 
Vector2Int _centerIndexInt
 
GeoCoordinate2Double _geoCenter
 

Additional Inherited Members

- Static Protected Attributes inherited from DepictionEngine.Grid2D
static readonly double MIN_SIZE = 0.00000001d
 
- Properties inherited from DepictionEngine.Grid2D
int rowCount [get]
 
Vector2Double centerIndex [get]
 
Vector2Int grid2DDimensions [get]
 
GeoCoordinate2Double geoCenter [get]
 
CameraGrid2D cameraGrid2D [get]
 
- Properties inherited from DepictionEngine.GridBase
int cascade [get, set]
 
bool enabled [get]
 
bool wasFirstUpdated [get]
 
- Properties inherited from DepictionEngine.IGrid
bool wasFirstUpdated [get]
 
- Properties inherited from DepictionEngine.IGrid2D
GeoCoordinate2Double geoCenter [get]
 

Member Function Documentation

◆ UpdateDerivedProperties()

override bool DepictionEngine.GeometricGrid2D.UpdateDerivedProperties ( )
protectedvirtual

Reimplemented from DepictionEngine.GridBase.

◆ UpdateGrid()

override bool DepictionEngine.GeometricGrid2D.UpdateGrid ( Vector2Int  gridDimensions)
protectedvirtual

Reimplemented from DepictionEngine.Grid2D.


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