C# Class OpenBve.World.Vector3D

Represents a 3D vector of System.Double coordinates.
Show file Open project: leezer3/OpenBVE Class Usage Examples

Public Properties

Property Type Description
X double
Y double
Z double

Public Methods

Method Description
Add ( Vector3D A, Vector3D B ) : Vector3D

Returns the sum of two vectors.

Subtract ( Vector3D A, Vector3D B ) : Vector3D

Returns the difference of two vectors.

Vector3D ( Vector2D Vector, double Y ) : System

Returns a normalized vector based on a 2D vector in the XZ plane and an additional Y-coordinate.

Vector3D ( double X, double Y, double Z ) : System

Method Details

Add() public static method

Returns the sum of two vectors.
public static Add ( Vector3D A, Vector3D B ) : Vector3D
A Vector3D
B Vector3D
return Vector3D

Subtract() public static method

Returns the difference of two vectors.
public static Subtract ( Vector3D A, Vector3D B ) : Vector3D
A Vector3D
B Vector3D
return Vector3D

Vector3D() public method

Returns a normalized vector based on a 2D vector in the XZ plane and an additional Y-coordinate.
public Vector3D ( Vector2D Vector, double Y ) : System
Vector Vector2D The vector in the XZ-plane. The X and Y components in Vector represent the X- and Z-coordinates, respectively.
Y double The Y-coordinate.
return System

Vector3D() public method

public Vector3D ( double X, double Y, double Z ) : System
X double
Y double
Z double
return System

Property Details

X public property

public double X
return double

Y public property

public double Y
return double

Z public property

public double Z
return double