Skip to content

Commit

Permalink
Add Matrix print. Check http object for null headerMap
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh Sanderson committed Nov 30, 2023
1 parent 4642777 commit 5a9c658
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/nme/geom/Matrix3D.hx
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,14 @@ class Matrix3D
}
}

public function print()
{
Sys.println('[ $mxx $mxy $mxz | $tx ]');
Sys.println('[ $myx $myy $myz | $ty ]');
Sys.println('[ $mzx $mzy $mzz | $tz ]');
Sys.println('[ $mwx $mwy $mwz | $tw ]');
}

inline public function transpose():Void
{
var oRawData = rawData.copy();
Expand Down
2 changes: 2 additions & 0 deletions src/nme/net/HttpLoader.hx
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ class HttpLoader
public function getHeaders() : Array<String>
{
var headerMap = http.responseHeaders;
if (headerMap==null)
return [];
return [ for(h in headerMap.keys()) h + ": " + headerMap.get(h) ];
}

Expand Down

0 comments on commit 5a9c658

Please sign in to comment.