# triangulate: Triangulate a polygonal 'CMBWindow' In rcosmo: Cosmic Microwave Background Data Analysis

## Description

Triangulate a polygonal `CMBWindow`

## Usage

 `1` ```triangulate(win) ```

## Arguments

 `win` a CMBWindow object

## Value

a list of CMBWindow polygons or minus.polygons, each having 3 vertices and representing a triangle. If winType of `win` does not include "minus" then these triangles have pairwise disjoint interiors and their union is equal to the original polygon, `win`. Otherwise, if winType of `win` does include "minus" the triangles are the same as for the non-minus type above, but have "minus" types.

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27``` ```## Example 1 win <- CMBWindow(theta = c(2*pi/3,3*pi/4,3*pi/4, 2*pi/3), phi = c(pi/4,pi/4,pi/3,pi/3)) win plot(win) win1 <- triangulate(win) win1 summary(win1[]) plot(win1[], add= FALSE, col="green") plot(win1[], col="blue") ## Example 2: triangilation minus-type polygon win <- CMBWindow(theta = c(pi/5,pi/3,pi/4, pi/3, pi/5), phi = c(pi/5,pi/5, pi/4 ,pi/3,pi/3), set.minus =TRUE) win plot(win) summary(win) win1 <- triangulate(win) win1 plot(win1[], add= FALSE, col="green") plot(win1[], col="blue") plot(win1[], col="yellow") summary(win1[]) summary(win1[]) summary(win1[]) ```

rcosmo documentation built on Feb. 14, 2020, 5:06 p.m.