Viewpoint Forums
Viewpoint Forums
Viewpoint Tips, Tricks & Hacks
Point3d|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
Hi there,
Do Point3d or similar Objects include additional functions, like normalize() or getLength()? I tried to extend the object, using the prototype syntax: Point3d.prototype.getLength=new function(){
return Math.sqrt(Math.pow(this.x)+Math.pow(this.y)+Math.pow(this.z));
}
but it didn't work best regards, frank |
||
|
|
Member |
CXPPoint3d is a base type. Like a Number is. Unluckily, you cannot attach any additional functionalities / properties to it.
It’s a nice idea though, we will think about including it for future releases. Regards |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

