C# Класс AbstractedSheep.ShuttleTrackerWorld.Point3D

Represents an immutable point in 3D Cartesian space.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CrossProduct ( Point3D p ) : Point3D

Calculates the cross product of two points as vectors positioned on the origin.

DistanceTo ( Point3D p ) : double

Calculates the Euclidian distance between this point and another point.

Equals ( object obj ) : bool
GetHashCode ( ) : int
Magnitude ( ) : double

Calculate the magnitude of the vector formed between the origin and this point.

MoveTowards ( Point3D p, double distance ) : Point3D

Calculate the result of moving this point a given distance towards another point.

Point3D ( double x = 0.0, double y = 0.0, double z = 0.0 ) : System
ToString ( ) : string
operator ( ) : Point3D
operator ( ) : bool

Описание методов

CrossProduct() публичный Метод

Calculates the cross product of two points as vectors positioned on the origin.
public CrossProduct ( Point3D p ) : Point3D
p Point3D The point to cross with.
Результат Point3D

DistanceTo() публичный Метод

Calculates the Euclidian distance between this point and another point.
public DistanceTo ( Point3D p ) : double
p Point3D The point to measure the distance to.
Результат double

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

Magnitude() публичный Метод

Calculate the magnitude of the vector formed between the origin and this point.
public Magnitude ( ) : double
Результат double

MoveTowards() публичный Метод

Calculate the result of moving this point a given distance towards another point.
public MoveTowards ( Point3D p, double distance ) : Point3D
p Point3D The point to move towards.
distance double The distance to move. It is possible to move past either endpoint.
Результат Point3D

Point3D() публичный Метод

public Point3D ( double x = 0.0, double y = 0.0, double z = 0.0 ) : System
x double
y double
z double
Результат System

ToString() публичный Метод

public ToString ( ) : string
Результат string

operator() публичный статический Метод

public static operator ( ) : Point3D
Результат Point3D

operator() публичный статический Метод

public static operator ( ) : bool
Результат bool