Packagestarling.utils
Classpublic class MeshUtil
InheritanceMeshUtil Inheritance Object

A utility class that helps with tasks that are common when working with meshes.



Public Methods
 MethodDefined By
  
calculateBounds(vertexData:VertexData, sourceSpace:DisplayObject, targetSpace:DisplayObject, out:Rectangle = null):Rectangle
[static] Calculates the bounds of the given vertices in the target coordinate system.
MeshUtil
  
containsPoint(vertexData:VertexData, indexData:IndexData, point:Point):Boolean
[static] Determines if a point is inside a mesh that is spawned up by the given vertex- and index-data.
MeshUtil
Method Detail
calculateBounds()method
public static function calculateBounds(vertexData:VertexData, sourceSpace:DisplayObject, targetSpace:DisplayObject, out:Rectangle = null):Rectangle

Calculates the bounds of the given vertices in the target coordinate system.

Parameters

vertexData:VertexData
 
sourceSpace:DisplayObject
 
targetSpace:DisplayObject
 
out:Rectangle (default = null)

Returns
Rectangle
containsPoint()method 
public static function containsPoint(vertexData:VertexData, indexData:IndexData, point:Point):Boolean

Determines if a point is inside a mesh that is spawned up by the given vertex- and index-data.

Parameters

vertexData:VertexData
 
indexData:IndexData
 
point:Point

Returns
Boolean