localToParent method

  1. @override
Point<num> localToParent (Point<num> localPoint, [ Point<num> returnPoint ])
override

Converts the point object from this display object's local coordinates to this display object's parent coordinates.

This method allows you to convert any given x- and y-coordinates from values that are relative to the origin (0,0) of this display object's local coordinates to values that are relative to the origin of this display object's parent coordinates.

Implementation

@override
Point<num> localToParent(Point<num> localPoint, [Point<num> returnPoint]) {
  _calculateProjectionMatrix(transformationMatrix);
  return _projectionMatrix3D.transformPoint(localPoint, returnPoint);
}