|
@@ -323,18 +323,18 @@ class Object implements hxd.impl.Serializable {
|
|
|
/**
|
|
|
Convert a local position (or [0,0] if pt is null) relative to the object origin into an absolute global position, applying all the inherited transforms.
|
|
|
**/
|
|
|
- public function localToGlobal( ?pt : h3d.Vector ) {
|
|
|
+ public function localToGlobal( ?pt : h3d.col.Point ) {
|
|
|
syncPos();
|
|
|
- if( pt == null ) pt = new h3d.Vector();
|
|
|
- pt.transform3x4(absPos);
|
|
|
+ if( pt == null ) pt = new h3d.col.Point();
|
|
|
+ pt.transform(absPos);
|
|
|
return pt;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
Convert an absolute global position into a local position relative to the object origin, applying all the inherited transforms.
|
|
|
**/
|
|
|
- public function globalToLocal( pt : h3d.Vector ) {
|
|
|
- pt.transform3x4(getInvPos());
|
|
|
+ public function globalToLocal( pt : h3d.col.Point ) {
|
|
|
+ pt.transform(getInvPos());
|
|
|
return pt;
|
|
|
}
|
|
|
|