POV-Ray : Newsgroups : povray.general : A bit of math : Re: A bit of math Server Time
19 Apr 2024 12:45:14 EDT (-0400)
  Re: A bit of math  
From: Mike Horvath
Date: 26 Feb 2018 20:50:30
Message: <5a94b966$1@news.povray.org>
On 2/26/2018 8:26 PM, Bald Eagle wrote:
> Mike Horvath <mik### [at] gmailcom> wrote:
>> I have a three coordinates.
>>
>> // bounding box
>> L3ModelBBoxMin = <-1280,-428,-960>
>> L3ModelBBoxMax = <1280,0,-160>
>>
>> // camera location
>> L3Location = <2413.395250,-1636.367750,-2657.726250>
>>
>>
>> How do I determine the corner of the bounding box that is nearest the
>> camera? Thanks.
>>
>>
>> Mike
> 
> Define the corners you want to test, and calculate the vlength between the
> corners and the camera location.   Then use min().
> 
> 

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?


Mike


Post a reply to this message

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