Tudat/Mathematics/GeometricShapes/conicalFrustum.cpp
//! Get surface point on conical frustum.
Get surface point on conical frustum.
Get surface point on conical frustum .
Eigen::VectorXd ConicalFrustum::getSurfacePoint( double azimuthAngle, double lengthFraction )
{
    double localRadius_ = startRadius_ + length_ * lengthFraction * std::tan( coneHalfAngle_ );
    cartesianPositionVector_ = coordinate_conversions::
            convertCylindricalToCartesian( Eigen::Vector3d( localRadius_, azimuthAngle, 0.0 ) );
    cartesianPositionVector_( 2 ) = -length_ * lengthFraction;
    transformPoint( cartesianPositionVector_ );
    return cartesianPositionVector_;
}
Eigen :: VectorXd ConicalFrustum :: getSurfacePoint ( double azimuthAngle , double lengthFraction ) { double localRadius_ = startRadius_ + length_ * lengthFraction * std :: tan ( coneHalfAngle_ ) ; cartesianPositionVector_ = coordinate_conversions :: convertCylindricalToCartesian ( Eigen :: Vector3d ( localRadius_ , azimuthAngle , 0.0 ) ) ; cartesianPositionVector_ ( 2 ) = - length_ * lengthFraction ; transformPoint ( cartesianPositionVector_ ) ; return cartesianPositionVector_ ; }
Get surface point on conical frustum.
Get surface point on conical frustum .
// Determines the radius of the cone at the given length fraction. // Set x and y coordinate of untransformed cone. // Set z coordinate of untransformed cone. // Transform conical frustum to desired position and orientation. // Return Cartesian position vector.