# Matrix3D and Vertex3D

**URL:** <https://forum.kirupa.com/t/matrix3d-and-vertex3d/294496>\
**Category:** flash\
**Created:** [August 14, 2009, 11:56pm UTC](https://forum.kirupa.com/t/matrix3d-and-vertex3d/294496 "2009-08-14T23:56:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![renton79](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@renton79](https://forum.kirupa.com/u/renton79)\
**Post date:** [August 14, 2009, 11:56pm UTC](https://forum.kirupa.com/t/matrix3d-and-vertex3d/294496/1 "2009-08-14T23:56:39Z")

</div>

[FONT=Courier New]Hi Guys,

I have a question about Matrix3D and Vertex3D classes. I want to rotate each of this 3 points around center (0, 0, 0):

```
    v1 = **[COLOR=Blue]vertex3D[/COLOR]**(-100, 0, 0)
v2 = **[COLOR=Blue]vertex3D[/COLOR]**( 0, 0, 0)
v3 = [/FONT][FONT=Courier New][COLOR=Blue] **vertex3D** [/COLOR][/FONT][FONT=Courier New]( 0, 0, 120)

```

by let’s say (35, 12, 35) degrees in xyz axes. I should have get back this coordinates for each of them (I have read them out of 3dsmax)

```
    v1 = **[COLOR=Blue]vertex3D[/COLOR]**(-80.125, -56.104, 20.791)
    v2 = [/FONT][FONT=Courier New][COLOR=Blue] **vertex3D** [/COLOR][/FONT][FONT=Courier New]( 0, 0, 0)
v3 = **[COLOR=Blue]vertex3D[/COLOR]**( 56.220, -44.659, 96.150)

```

I don’t want to do it like this: OBJECT.transform.matrix3d…bla bla as I need an object to do it, I would like to put each vertex3D separatly through matrix3d in to a for loop to receive at the end pure coordinates. Is it possible???

Dave[/FONT]
