orthonormalBasis: Find an orthonormal basis in dimension 3

View source: R/TrajectoryGeometry.R

orthonormalBasisR Documentation

Find an orthonormal basis in dimension 3

Description

Given a vector in R3, this normalizes it and then uses it as the first basis vector in an orthonormal basis. We'll use this to find circles around points on the sphere.

Usage

orthonormalBasis(x)

Arguments

x

- A vector of length 3

Value

This function returns an orthonormal basis in the the form of a 3 x 3 matrix in which the first vector is parallel to v

Examples

anOrthonormalBasis = orthonormalBasis(c(1,1,1))

AnnaLaddach/TrajectoryGeometry documentation built on Feb. 23, 2024, 2:24 p.m.