Vector3d with floating values.
-
Hello Friends I am in a very critical situation.I am having some float values and the the method I am using to scale is setScale that accepts only vector3d(int,int,int).So how can i create vector3d by using float values.Or is there any other way to create vector3d with flaoting values? Thanks & Regards Yogesh
-
Hello Friends I am in a very critical situation.I am having some float values and the the method I am using to scale is setScale that accepts only vector3d(int,int,int).So how can i create vector3d by using float values.Or is there any other way to create vector3d with flaoting values? Thanks & Regards Yogesh
As usual, your question is so vague that it is almost imposible to give an accurate reply. You should really try to give much more information about the context of your question. Here, we don't have any clue what you might be talking about (unless by guessing)... From which "library" is this vector3d class coming from ? Why are you using float values if you need to express positions in integers and not in float values ? From where are those float values coming from ? etc...
Cédric Moonen Software developer
Charting control [v3.0] OpenGL game tutorial in C++ -
As usual, your question is so vague that it is almost imposible to give an accurate reply. You should really try to give much more information about the context of your question. Here, we don't have any clue what you might be talking about (unless by guessing)... From which "library" is this vector3d class coming from ? Why are you using float values if you need to express positions in integers and not in float values ? From where are those float values coming from ? etc...
Cédric Moonen Software developer
Charting control [v3.0] OpenGL game tutorial in C++Hello Cedric I am sorry If my questions are too much vague for you but I try my best to explain from myside.I guess you might be some senior member here so I respect you.Is that reason that some of mine last questions were not answered by anyone? Actually,I got the answer to my question .but Anyway I will Explain you more in details.vector3d is from java3d Library.And I am getting float values some obj file format.Ans setScale is function of Transform3d.And SetScale are of types, one accepts float and other accepts vector3d.I was getting flaot values so my question was how to create a vector3d from flaot values. But It solved After more googling. AnyWay,I appreciate for your valuable time in my thread and even for answering to me .:rose: Thanks Once Again Regards Yogesh Sikri
-
Hello Cedric I am sorry If my questions are too much vague for you but I try my best to explain from myside.I guess you might be some senior member here so I respect you.Is that reason that some of mine last questions were not answered by anyone? Actually,I got the answer to my question .but Anyway I will Explain you more in details.vector3d is from java3d Library.And I am getting float values some obj file format.Ans setScale is function of Transform3d.And SetScale are of types, one accepts float and other accepts vector3d.I was getting flaot values so my question was how to create a vector3d from flaot values. But It solved After more googling. AnyWay,I appreciate for your valuable time in my thread and even for answering to me .:rose: Thanks Once Again Regards Yogesh Sikri
yogeshs wrote:
But It solved After more googling
Maybe, just maybe, you should try google BEFORE cp.
Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H
-
Hello Friends I am in a very critical situation.I am having some float values and the the method I am using to scale is setScale that accepts only vector3d(int,int,int).So how can i create vector3d by using float values.Or is there any other way to create vector3d with flaoting values? Thanks & Regards Yogesh
It seems like you are trying to use a Java library for 3D programming. If that is the case, then there would most definitely be a class called
FastMath
in a package calledmath
somewhere. You can use theFastMath.round(...)
method within that class to convert thefloat
values to anint
without much overhead. This will enable you to then pass those values to theVector3D
class. Hope this helps. I would have been of further help if I only knew what libraries you were using.
The beginning of knowledge is the fear of God