POV-Ray : Newsgroups : povray.general : Regular Polygons & Prisms : Re: Regular Polygons & Prisms Server Time
11 Aug 2024 01:25:24 EDT (-0400)
  Re: Regular Polygons & Prisms  
From: Remco de Korte
Date: 6 Oct 1999 22:18:41
Message: <37FC0338.130FCDFF@xs4all.nl>
Andrea Ryan wrote:
> 
> I need 2d vectors for polygons but vrotate changes them into 3d vectors.
> Thanks for help.
> Brendan Ryan
> 

Try this:

temp_vec=vrtotate(<0,1,0>,<0,0,120>);
vec=<temp_vec.x,temp_vec.y>;

That's how I got it working.

Good luck,

Remco


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.