GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Processing
  • Download
  • Reference
  • Environment
  • Libraries
  • Tools
  • Wiki
  • Tutorials
  • Examples
  • Books
  • Forum
  • Overview
  • People
  • Privacy

This view

  • Original page
  • New address

GeezerVison is showing processing.org — array() / Reference

Reference+
Documentation→Reference→Math→PVector

Name

array()

Class

PVector

Description

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 copy() method to copy into your own array.

Examples

  • PVector v = new PVector(10.0, 20.0, 30.0);
    float[] f = v.array();
    println(f[0]);  // Prints "10.0"
    println(f[1]);  // Prints "20.0"
    println(f[2]);  // Prints "30.0"
    

Syntax

  • .array()

Return

  • float[]
Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.