field_access: Vector field access

$.dddr_quatR Documentation

Vector field access

Description

In order to access fields within each vector, the '$' operator is used.

Usage

## S3 method for class 'dddr_quat'
x$name

## S3 method for class 'dddr_vector3'
x$name

Arguments

x

Vector3 whose fields to access

name

Field name to access. For vectors, this should be one of "x", "y", or "z". For quaternions, this can include "w" as well.

Examples

vector3(x = 1:4, y = 2:5, z = 3:6)$y

MrMallIronmaker/dddr documentation built on May 11, 2022, 8:39 p.m.