Table of Contents

Class StaticTranslation

Namespace
Hi.Mech.Topo
Assembly
HiMech.dll

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 Vec3d

translation

StaticTranslation(double, double, double)

Ctor.

public StaticTranslation(double x, double y, double z)

Parameters

x double

translation x

y double

translation y

z double

translation z

StaticTranslation(XElement)

Ctor.

public StaticTranslation(XElement src)

Parameters

src XElement

XML

Properties

Trans

Translation.

public Vec3d Trans { get; set; }

Property Value

Vec3d

XName

Static name.

public static string XName { get; }

Property Value

string

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 string

The base directory for resolving relative paths

relFile string

The 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 StaticTranslation

src

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.