C# Class SolidworksAddinFramework.Geometry.Range3Single

A fast 3D range object. Models an axis aligned box between two points. Because it uses single precision in can using System.Numerics.Vectors Vector3 class which is very fast.
Mostrar archivo Open project: Weingartner/SolidworksAddinFramework Class Usage Examples

Public Properties

Property Type Description
XMax double
XMin double
YMax double
YMin double
ZMax double
ZMin double

Public Methods

Method Description
BoundingSphere ( ) : double>.Tuple
Equals ( Range3Single other ) : bool
Equals ( object obj ) : bool
FromTriangle ( IReadOnlyList triangles ) : Range3Single
FromTriangle ( Triangle triangle ) : Range3Single
FromVertices ( IReadOnlyList vertices ) : Range3Single
GetHashCode ( ) : int
Inside ( System.Vector3 p ) : bool
Intersect ( Range3Single other ) : Range3Single
Intersects ( Range3Single other ) : bool
ProcessVertices ( Action action ) : void

Passes every vertex to the action. This method avoids creating an array of vertices on the heap and incurring the garbage collection and iteration costs.

Range3Single ( System.Vector3 p0, System.Vector3 p1 ) : System
Range3Single ( double x0, double y0, double z0, double x1, double y1, double z1 ) : System
Scale ( double s ) : Range3Single
ToString ( ) : string
operator ( ) : bool

Private Methods

Method Description
Adjust ( System.Vector3 vertex, double &xmin, double &xmax, double &ymin, double &ymax, double &zmin, double &zmax ) : void
Between ( double v, double lower, double upper ) : bool

Method Details

BoundingSphere() public method

public BoundingSphere ( ) : double>.Tuple
return double>.Tuple

Equals() public method

public Equals ( Range3Single other ) : bool
other Range3Single
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

FromTriangle() public static method

public static FromTriangle ( IReadOnlyList triangles ) : Range3Single
triangles IReadOnlyList
return Range3Single

FromTriangle() public static method

public static FromTriangle ( Triangle triangle ) : Range3Single
triangle Triangle
return Range3Single

FromVertices() public static method

public static FromVertices ( IReadOnlyList vertices ) : Range3Single
vertices IReadOnlyList
return Range3Single

GetHashCode() public method

public GetHashCode ( ) : int
return int

Inside() public method

public Inside ( System.Vector3 p ) : bool
p System.Vector3
return bool

Intersect() public method

public Intersect ( Range3Single other ) : Range3Single
other Range3Single
return Range3Single

Intersects() public method

public Intersects ( Range3Single other ) : bool
other Range3Single
return bool

ProcessVertices() public method

Passes every vertex to the action. This method avoids creating an array of vertices on the heap and incurring the garbage collection and iteration costs.
public ProcessVertices ( Action action ) : void
action Action
return void

Range3Single() public method

public Range3Single ( System.Vector3 p0, System.Vector3 p1 ) : System
p0 System.Vector3
p1 System.Vector3
return System

Range3Single() public method

public Range3Single ( double x0, double y0, double z0, double x1, double y1, double z1 ) : System
x0 double
y0 double
z0 double
x1 double
y1 double
z1 double
return System

Scale() public method

public Scale ( double s ) : Range3Single
s double
return Range3Single

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : bool
return bool

Property Details

XMax public_oe property

public double XMax
return double

XMin public_oe property

public double XMin
return double

YMax public_oe property

public double YMax
return double

YMin public_oe property

public double YMin
return double

ZMax public_oe property

public double ZMax
return double

ZMin public_oe property

public double ZMin
return double