C# 클래스 AbstractedSheep.ShuttleTrackerWorld.Point3D

Represents an immutable point in 3D Cartesian space.
파일 보기 프로젝트 열기: AbstractedSheep/Shuttle-Tracker 1 사용 예제들

공개 메소드들

메소드 설명
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