# Vector/Point Class

**URL:** <https://forum.kirupa.com/t/vector-point-class/274975>\
**Category:** flash\
**Created:** [November 7, 2008, 6:14am UTC](https://forum.kirupa.com/t/vector-point-class/274975 "2008-11-07T06:14:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![substance](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@substance](https://forum.kirupa.com/u/substance)\
**Post date:** [November 7, 2008, 6:14am UTC](https://forum.kirupa.com/t/vector-point-class/274975/1 "2008-11-07T06:14:26Z")

</div>

Ok, this is just funky

```auto
var pointVector:Vector.<Point> = Vector.<Point>([new Point(1)]);
var point:Point = pointVector[0];
point.x = 2;
trace(pointVector[0].x);

```

It outputs 2.

What the hell? Do points pass by reference or does this have something to do with the Vector class? If so, hwo do i get around this?
