 |
MeshUtilsScaleAndTranslateMesh Method |
Transforms the specified vertices in an array of PositionNormalTextureVertex with the specified scale and translates them by the specified offset.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxpublic static PositionNormalTextureVertex[] ScaleAndTranslateMesh(
PositionNormalTextureVertex[] vertices,
Vector3 scale,
Vector3 offset
)
Parameters
- vertices PositionNormalTextureVertex
- array of PositionNormalTextureVertex
- scale Vector3
- scale factors
- offset Vector3
- translation vector
Return Value
PositionNormalTextureVertexnew array of PositionNormalTextureVertex with transformed Positions (Normals and TextureCoordinates are not changed).
See Also