Table of Contents

Class StaticRotation

Namespace
Hi.Mech.Topo
Assembly
HiMech.dll

Static Rotation.

public class StaticRotation : IStaticTransformer, ITransformer, IMakeXmlSource, IGetInverseTransformer
Inheritance
StaticRotation
Implements
Inherited Members
Extension Methods

Constructors

StaticRotation()

Initializes a new instance of the StaticRotation class.

public StaticRotation()

StaticRotation(Vec3d, double)

Ctor.

public StaticRotation(Vec3d axis, double angle_rad)

Parameters

axis Vec3d

Axis

angle_rad double

Angle_rad

StaticRotation(Vec3d, double, Vec3d)

Ctor.

public StaticRotation(Vec3d axis, double angle_rad, Vec3d pivot)

Parameters

axis Vec3d
angle_rad double
pivot Vec3d

StaticRotation(XElement)

Initializes a new instance of the StaticRotation class from XML data.

public StaticRotation(XElement src)

Parameters

src XElement

The XML element containing the rotation data.

Properties

Angle_deg

Gets or sets the rotation angle in degrees.

public double Angle_deg { get; set; }

Property Value

double

Angle_rad

Gets or sets the rotation angle in radians.

public double Angle_rad { get; set; }

Property Value

double

Axis

Gets or sets the rotation axis.

public Vec3d Axis { get; set; }

Property Value

Vec3d

Pivot

Gets or sets the pivot point for the rotation.

public Vec3d Pivot { get; set; }

Property Value

Vec3d

XName

Gets the XML element name for serialization.

public static string XName { get; }

Property Value

string

Methods

Clone()

Clones this instance.

public ITransformer Clone()

Returns

ITransformer

clone

GetInverseTransformer()

Gets a new transformer that represents the inverse of this rotation.

public ITransformer GetInverseTransformer()

Returns

ITransformer

An inverse transformer instance.

GetMat()

Gets the transformation matrix representing this rotation.

public Mat4d GetMat()

Returns

Mat4d

A 4x4 transformation matrix.

GetMatInv()

Gets the inverse transformation matrix of this rotation.

public Mat4d GetMatInv()

Returns

Mat4d

A 4x4 inverse transformation matrix.

MakeXmlSource(string, string)

Creates an XML element representing this rotation.

public virtual XElement MakeXmlSource(string baseDirectory, string relFile)

Parameters

baseDirectory string

The base directory for relative paths.

relFile string

The relative file path.

Returns

XElement

An XML element containing the rotation data.