Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 762 Bytes

getAngle().adoc

File metadata and controls

51 lines (31 loc) · 762 Bytes

getAngle()

Description

Reads the angular coordinate of the point in radians.

Syntax

getAngle()

Parameters

Nothing

Returns

phi: the angular coordinate of the point in radians (float)

Example

# include <Coordinates.h>
Coordinates point = Coordinates();
void setup() {
  // put your setup code here, to run once
  Serial.begin(9600);
  float phi;
  phi = point.getAngle();
  Serial.print("φ: ");
  Serial.println(phi);
  Serial.println(" rads");
}

void loop() {}