Difference between revisions of "Sphtarea.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Correct function page syntax from current Spinach source)
m (Rename Arguments section heading to Parameters)
Line 7: Line 7:
 
     S=sphtarea(r1,r2,r3,sflag)
 
     S=sphtarea(r1,r2,r3,sflag)
  
−
==Arguments==
+
==Parameters==
  
 
   r1,r2,r3  - three-element unit vectors with Cartesian
 
   r1,r2,r3  - three-element unit vectors with Cartesian

Revision as of 18:52, 5 June 2026

Area of the curvilinear triangle on the unit sphere defined by the vertex coordinates supplied.

Syntax

    S=sphtarea(r1,r2,r3,sflag)

Parameters

  r1,r2,r3  - three-element unit vectors with Cartesian
              coordinates of triangle vertices

     sflag  - 'signed' would take into account surface
              normal direction, 'unsigned' (default)
              would always return a positive area

Outputs

         S  - spherical triangle surface area

See also

Integration grids, Appendix I: powder grids

Version 2.6, authors: Ilya Kuprov