7#include "EllipsoidShape.h"
17#include "IException.h"
21#include "NaifStatus.h"
22#include "ShapeModel.h"
23#include "SurfacePoint.h"
53 std::vector<double> lookDirection) {
110 double a = radii[0].kilometers();
111 double b = radii[1].kilometers();
112 double c = radii[2].kilometers();
117 double xyradius = a * b / sqrt(pow(b * cos(rlon), 2) +
118 pow(a * sin(rlon), 2));
119 const double &radius = xyradius * c / sqrt(pow(c * cos(rlat), 2) +
120 pow(xyradius * sin(rlat), 2));
double radians() const
Convert an angle to a double.
Distance measurement, usually in meters.
@ Kilometers
The distance is being specified in kilometers.
EllipsoidShape()
Initialize the EllipsoidShape.
bool intersectSurface(std::vector< double > observerPos, std::vector< double > lookDirection)
Intersect the shape model.
bool isDEM() const
Indicates that this shape model is not from a DEM.
void calculateLocalNormal(QVector< double * > cornerNeighborPoints)
Calculate the local surface normal of the current intersection point.
Distance localRadius(const Latitude &lat, const Longitude &lon)
Get the local radius for a point on the surface.
This class is designed to encapsulate the concept of a Latitude.
This class is designed to encapsulate the concept of a Longitude.
void setLocalNormal(const std::vector< double >)
Sets the local normal for the currect intersection point.
bool intersectEllipsoid(const std::vector< double > observerPosRelativeToTarget, const std::vector< double > &observerLookVectorToTarget)
Finds the intersection point on the ellipsoid model using the given position of the observer (spacecr...
virtual void calculateSurfaceNormal()
Calculate surface normal.
virtual std::vector< double > normal()
Returns the surface normal at the current intersection point.
std::vector< Distance > targetRadii() const
Returns the radii of the body in km.
ShapeModel()
Default constructor creates ShapeModel object, initializing name to an empty string,...
bool hasNormal() const
Returns surface point normal status.
void setName(QString name)
Sets the shape name.
This class is used to create and store valid Isis targets.
This is free and unencumbered software released into the public domain.
Namespace for the standard library.