POV-Ray : Newsgroups : povray.general : A bit of math : Re: A bit of math Server Time
23 Apr 2024 02:33:18 EDT (-0400)
  Re: A bit of math  
From: Bald Eagle
Date: 26 Feb 2018 21:20:01
Message: <web.5a94bf4091b82e795cafe28e0@news.povray.org>
Mike Horvath <mik### [at] gmailcom> wrote:

> I get an error when I try to set the value of a vector's x-coordinate.
>
>  #local NearCorner.x = BBoxMin.x;
>
> What is the correct way to set this coordinate?

#local NearCorner = <BBoxMin.x, BBoxMin.y, BBoxMin.z>;

or

#local NearCorner = NearCorner + <BBoxMin.x, 0, 0>;

However you're going about it.

You can USE the .x you just can't declare it.


Post a reply to this message

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