x3p_flip_x: Flip the x coordinate of an x3p file

Description Usage Arguments Value Examples

View source: R/x3p_flip_x.R

Description

Flip the surface matrix of an x3p file along the x axis.

Usage

1
2
3

Arguments

x3p

x3p object

Value

x3p object in which the x coordinate is reversed.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
logo <- x3p_read(system.file("csafe-logo.x3p", package="x3ptools"))
dim(logo$surface.matrix)
## Not run: 
x3p_image(logo)

## End(Not run)
# flip the y-axis for the old ISO standard:
logoflip <- x3p_flip_x(logo)
dim(logoflip$surface.matrix)
## Not run: 
x3p_image(logoflip)

## End(Not run)

x3ptools documentation built on Nov. 27, 2021, 1:06 a.m.