C# Class OpenBveApi.Objects.AbstractObject

Represents an abstract object. This is the base class from which all objects must inherit.
Afficher le fichier Open project: leezer3/OpenBVE Class Usage Examples

Méthodes publiques

Méthode Description
Rotate ( Orientation3 orientation ) : void

Rotates the object from the default orientation into the specified orientation.

The default orientation is X = {1, 0, 0), Y = {0, 1, 0} and Z = {0, 0, 1}.

Rotate ( Vector3 direction, double cosineOfAngle, double sineOfAngle ) : void

Rotates the object around the specified axis.

Scale ( Vector3 factor ) : void

Scales the object by the specified factor.

Translate ( Orientation3 orientation, Vector3 offset ) : void

Translates the object by the specified offset that is measured in the specified orientation.

Translate ( Vector3 offset ) : void

Translates the object by the specified offset.

Method Details

Rotate() public abstract méthode

Rotates the object from the default orientation into the specified orientation.
The default orientation is X = {1, 0, 0), Y = {0, 1, 0} and Z = {0, 0, 1}.
public abstract Rotate ( Orientation3 orientation ) : void
orientation OpenBveApi.Math.Orientation3 The target orientation.
Résultat void

Rotate() public abstract méthode

Rotates the object around the specified axis.
public abstract Rotate ( Vector3 direction, double cosineOfAngle, double sineOfAngle ) : void
direction Vector3 The axis along which to rotate.
cosineOfAngle double The cosine of the angle by which to rotate.
sineOfAngle double The sine of the angle by which to rotate.
Résultat void

Scale() public abstract méthode

Scales the object by the specified factor.
public abstract Scale ( Vector3 factor ) : void
factor Vector3 The factor by which to scale.
Résultat void

Translate() public abstract méthode

Translates the object by the specified offset that is measured in the specified orientation.
public abstract Translate ( Orientation3 orientation, Vector3 offset ) : void
orientation OpenBveApi.Math.Orientation3 The orientation along which to translate.
offset Vector3 The offset measured in the specified orientation.
Résultat void

Translate() public abstract méthode

Translates the object by the specified offset.
public abstract Translate ( Vector3 offset ) : void
offset Vector3 The offset by which to translate.
Résultat void