Click or drag to resize
Ab4d.SharpEngine logo

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.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntax
C#
public 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

PositionNormalTextureVertex
new array of PositionNormalTextureVertex with transformed Positions (Normals and TextureCoordinates are not changed).
See Also