C# Class tools.Math3DHelper.DoublePoint

Helper struct for isectboxtri. Like Vector3, but stores doubles instead of floats.
Show file Open project: denniskb/asvo_cuda

Public Properties

Property Type Description
UnitX DoublePoint
UnitY DoublePoint
UnitZ DoublePoint
x double
y double
z double

Public Methods

Method Description
Cross ( DoublePoint p ) : DoublePoint

Computes the cross product between this DoublePoint and p.

Dot ( DoublePoint p ) : double

Computes the dot product between this DoublePoint and p.

DoublePoint ( double x, double y, double z )

Constructs a new DoublePoint.

Sub ( DoublePoint p ) : DoublePoint

Subtracts another DoublePoint from this point.

Method Details

Cross() public method

Computes the cross product between this DoublePoint and p.
public Cross ( DoublePoint p ) : DoublePoint
p DoublePoint The second point.
return DoublePoint

Dot() public method

Computes the dot product between this DoublePoint and p.
public Dot ( DoublePoint p ) : double
p DoublePoint The second point.
return double

DoublePoint() public method

Constructs a new DoublePoint.
public DoublePoint ( double x, double y, double z )
x double x-coordinate
y double y-coordinate
z double z-coordinate

Sub() public method

Subtracts another DoublePoint from this point.
public Sub ( DoublePoint p ) : DoublePoint
p DoublePoint The vector to subtract from this one.
return DoublePoint

Property Details

UnitX public static property

public static DoublePoint UnitX
return DoublePoint

UnitY public static property

public static DoublePoint UnitY
return DoublePoint

UnitZ public static property

public static DoublePoint UnitZ
return DoublePoint

x public property

public double x
return double

y public property

public double y
return double

z public property

public double z
return double