# toCoord(a)

Creates Coordinates from input data.

### Syntax

o_toCoord(a)
  a: scalar or Array 1D Complex
  or scalar or Array 1D PComplex
  or array 1D or array 2D numerical
  return: scalar or array 1D Coordinate

### Usage

Use this to create coordinates within an expression.

### Location

menu: veeos ==> Data ==> Conversion ==> toCoord

library: dataLib

### Example

o_toCoord((1,2)) creates a scalar coordinate with X=1 and Y=2
o_toCoord((1,@90)) creates a scalar coordinate with X=0 and Y=1
o_toCoord(<array 1D of complex>) creates a array of coordinates
o_toCoord([1,2,3]) creates a scalar 3D coordinate (1,2,3)
o_toCoord([[1,2,3],[4,5,6]]) creates an array 1D of 2D coordinates

### Notes

While VEE syntax provides the ability to create and examine Complex and PComplex data within expressions, it lack the ability to do the same with coordinates. Hence one is left with the often-clumsy need to use the Build and Unbuild Coord objects instead. This function allows the user to convert Complex and PComplex data to 2D coordinates and also allows one to build 2D or 3D coordinates from scratch using an array as input.

### Reference

### Dependencies

### Supported On

VEE 7.0+, all platforms

### See Also

Xcoord, Ycoord, Zcoord

© 2015-2021. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 09 August 2021 18:29.