generateRandomUnitVector {TrajectoryGeometry} | R Documentation

## Generate random unit vector.

### Description

This function generates a random unit vector in in dimension d.

### Usage

    generateRandomUnitVector(d)

### Arguments

`d` | - The dimension.

### Value

A unit vector in dimension d.

### Examples

    randomUnitVector = generateRandomUnitVector(5)

[Package TrajectoryGeometry version 1.0.0 Index]