Skip to contents

Validate a geometry specification or its latent coordinates

Usage

validate.synthetic.geometry(geometry, latent = NULL)

Arguments

geometry

A geometry component constructed by this package.

latent

Optional latent coordinate matrix.

Value

With no latent input, the unchanged geometry invisibly. Otherwise, the validated latent coordinates as a double matrix.

Examples

validate.synthetic.geometry(synthetic.circle(), matrix(c(0, pi), ncol = 1))
#>          [,1]
#> [1,] 0.000000
#> [2,] 3.141593