Class StaticTranslation
Static Translate.
public class StaticTranslation : IStaticTransformer, ITransformer, IMakeXmlSource, IGetInverseTransformer
- Inheritance
-
StaticTranslation
- Implements
- Inherited Members
- Extension Methods
Constructors
StaticTranslation()
Ctor.
public StaticTranslation()
StaticTranslation(Vec3d)
Ctor.
public StaticTranslation(Vec3d trans)
Parameters
trans
Vec3dtranslation
StaticTranslation(double, double, double)
Ctor.
public StaticTranslation(double x, double y, double z)
Parameters
StaticTranslation(XElement)
Ctor.
public StaticTranslation(XElement src)
Parameters
src
XElementXML
Properties
Trans
Translation.
public Vec3d Trans { get; set; }
Property Value
XName
Static name.
public static string XName { get; }
Property Value
Methods
Clone()
Clones this instance.
public ITransformer Clone()
Returns
- ITransformer
clone
GetInverseTransformer()
Gets the inverse transformer of this transformer.
public ITransformer GetInverseTransformer()
Returns
- ITransformer
The inverse transformer.
GetMat()
Gets the transform matrix.
public Mat4d GetMat()
Returns
- Mat4d
The transform matrix.
GetMatInv()
Gets the inverse transform matrix.
public Mat4d GetMatInv()
Returns
- Mat4d
The inverse transform matrix.
MakeXmlSource(string, string)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public virtual XElement MakeXmlSource(string baseDirectory, string relFile)
Parameters
baseDirectory
stringThe base directory for resolving relative paths
relFile
stringThe relative file path for the XML source
Returns
- XElement
An XML element representing the object's state
Set(StaticTranslation)
Copy from src
.
public void Set(StaticTranslation src)
Parameters
src
StaticTranslationsrc
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.