( begin auto-generated from PVector_array.xml ) Return a representation of this vector as a float array. This is only for temporary use. If used in any other fashion, the contents should be copied by using the PVector.get() method to copy into your own array. ( end auto-generated ) @webref
()
| 1032 | * @brief Return a representation of the vector as a float array |
| 1033 | */ |
| 1034 | public float[] array() { |
| 1035 | if (array == null) { |
| 1036 | array = new float[3]; |
| 1037 | } |
| 1038 | array[0] = x; |
| 1039 | array[1] = y; |
| 1040 | array[2] = z; |
| 1041 | return array; |
| 1042 | } |
| 1043 | |
| 1044 | |
| 1045 | @Override |
no outgoing calls
no test coverage detected