Table of Contents

Class SimpleRotation

Namespace
VirtualLabAPI.Core.Numerics
Assembly
VirtualLabAPI.dll

Class for describing a rotation about one of the coordinate axes by a certain predefined angle.

[Serializable]
public class SimpleRotation : ManualSerialization, IEquatable<IObjectBase>, ICloneable, ISerializable, IDeserializationCallback
Inheritance
ObjectBase
SerializableObjectBase
ManualSerialization
SimpleRotation
Implements
IEquatable<IObjectBase>
Inherited Members

Constructors

SimpleRotation(RotationAxisOrAngleName, double)

Constructor getting the RotationAxisOrAngleName and the value of the rotation angle.

public SimpleRotation(RotationAxisOrAngleName rotationAxisOrAngleName, double rotationAngleValue)

Parameters

rotationAxisOrAngleName RotationAxisOrAngleName

Rotation axis or name of the rotation angle.

rotationAngleValue double

Value of the rotation angle in radian.

SimpleRotation(SimpleRotation)

Copy constructor.

public SimpleRotation(SimpleRotation simpleRotation)

Parameters

simpleRotation SimpleRotation

Simple rotation to copy.

Properties

RotationAngleValue

Get or set the rotation angle value in radians.

public double RotationAngleValue { get; set; }

Property Value

double

RotationAxisOrAngleName

Get the rotation axis or angle name.

public RotationAxisOrAngleName RotationAxisOrAngleName { get; }

Property Value

RotationAxisOrAngleName

Methods

Clone()

Creates a new object that is a copy of the current instance.

public override object Clone()

Returns

object

A new object that is a copy of this instance.

Equals(object, EqualityIntent)

Determines whether the specified object is equal to this instance.

public override bool Equals(object otherObject, EqualityIntent equalityIntent)

Parameters

otherObject object

The object to compare with this instance.

equalityIntent EqualityIntent

Defines what kind of equality you want to check when comparing two objects, for example all values or physical equality.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Overridden string representation of this object.

public override string ToString()

Returns

string

string representation of this object.