center: Center Eye-Movements in a New Coordinate System

View source: R/all_generic.R

centerR Documentation

Center Eye-Movements in a New Coordinate System

Description

This function centers the eye-movements in a new coordinate system with the specified origin.

Usage

center(x, origin, ...)

Arguments

x

The input object containing the eye-movements to be centered.

origin

A vector containing the x and y coordinates of the new coordinate system's origin.

...

Additional arguments to be passed to the centering method.

Value

An object containing the centered eye-movements in the new coordinate system.

Examples

# Example usage of the center function
input_object <- # input object data containing eye-movements
new_origin <- c(500, 500) # New coordinate system origin
centered_object <- center(input_object, origin = new_origin)


bbuchsbaum/eyesim documentation built on May 9, 2023, 3:29 a.m.