Click or drag to resize
Ab4d.SharpEngine logo

ScaleTransform Class

ScaleTransform defines a scale transformation that scales the transformed objects by the specified scale factors.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.TransformationsTransform
    Ab4d.SharpEngine.TransformationsScaleTransform

Namespace: Ab4d.SharpEngine.Transformations
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public class ScaleTransform : Transform

The ScaleTransform type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyPivotPoint Gets or sets a nullable Vector3 that sets a custom scale origin. For example, this can set to the center of the object's mesh (get by GetCenterPosition(Boolean, Boolean) method). PivotPoint is null by default. In this case all scales are done from the coordinate origin (0, 0, 0).
Public propertyScaleX Scale factor in the x direction. 1 by default.
Public propertyScaleY Scale factor in the y direction. 1 by default.
Public propertyScaleZ Scale factor in the z direction. 1 by default.
Top
Methods
 NameDescription
Public methodGetAverageScale Returns an average scale that is calculated by averaging the ScaleX, ScaleY and ScaleZ.
Public methodSetScale(Single) Sets scale factor for all x, y and z scale factors to the specified scale and updates the transformation matrix.
Public methodSetScale(Vector3) Sets all 3 scale factors in one call and updates the transformation matrix.
Public methodSetScale(Single, Single, Single) Sets all 3 scale factors in one call and updates the transformation matrix.
Public methodToString
(Overrides ObjectToString)
Protected methodUpdateMatrix Updates the Matrix4x4 that defines this transformation and is set to Value property.
Top
See Also