POV-Ray : Newsgroups : povray.newusers : rotating a point Server Time
13 May 2024 18:46:28 EDT (-0400)
  rotating a point (Message 1 to 2 of 2)  
From: Latex Spikes
Subject: rotating a point
Date: 24 Nov 2012 10:55:01
Message: <web.50b0ecdbdb088a442039b5940@news.povray.org>
Hi, gang.

I'm looking for some help.  I'm trying to create beginning and ending control
points for a spline and I'm having some trouble.  I want to define the points by
rotating them from another point, but not sure how to do it.  Here's the general
idea of what I'm trying to do:


#declare CPs1 = < 0, 10, -1 >;
#declare CPs2 = < 0, 10,  0 >;

#declare CPe1 = < 0, 10, -1 > rotate z*35.3 rotate y*45};
#declare CPe2 = < 0, 10,  0 > rotate z*35.3 rotate y*45};


Any help you can provide would be appreciated.  Thanks!


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: rotating a point
Date: 24 Nov 2012 12:25:27
Message: <50b10307$1@news.povray.org>

> Hi, gang.
>
> I'm looking for some help.  I'm trying to create beginning and ending control
> points for a spline and I'm having some trouble.  I want to define the points by
> rotating them from another point, but not sure how to do it.  Here's the general
> idea of what I'm trying to do:
>
>
> #declare CPs1 = < 0, 10, -1 >;
> #declare CPs2 = < 0, 10,  0 >;
>
> #declare CPe1 = < 0, 10, -1 > rotate z*35.3 rotate y*45};
> #declare CPe2 = < 0, 10,  0 > rotate z*35.3 rotate y*45};
>
>
> Any help you can provide would be appreciated.  Thanks!
>

   Look for vrotate on the docs (vector functions).

   Regards,

--
Jaime


Post a reply to this message

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