C# Class HoloToolkit.Unity.SpatialUnderstandingDllShapes.ShapeConstraint

显示文件 Open project: Microsoft/HoloToolkit-Unity

Public Properties

Property Type Description
Param_Float_0 float
Param_Int_0 int
Param_Int_1 int
Type ShapeConstraintType

Public Methods

Method Description
Create_AtBackOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint

Constructs a constraint requiring component B to be immediately in back of component A.

Create_AtFrontOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint

Constructs a constraint requiring component B to be immediately in front of component A.

Create_AtLeftOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint

Constructs a constraint requiring component B to be immediately to the left of component A.

Create_AtRightOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint

Constructs a constraint requiring component B to be immediately to the right of component A.

Create_AwayFromWalls ( ) : ShapeConstraint

Constructs a constraint requiring the shape to be away from all walls

Create_NoOtherSurface ( ) : ShapeConstraint

Constructs a constraint required no other surfaces be included in this shape

Create_RectanglesAligned ( int componentIndexA, int componentIndexB, float maxDifference = 0.1f ) : ShapeConstraint

Constructs a constraint requiring the components shapes to be either aligned with parallel or parallel alignment. The difference is the defined as the cosine of the angle between the best aligned axis (i.e. the dot product)

Create_RectanglesParallel ( int componentIndexA, int componentIndexB ) : ShapeConstraint

Constructs a constraint requiring the components shapes longer edges to have parallel alignment.

Create_RectanglesPerpendicular ( int componentIndexA, int componentIndexB ) : ShapeConstraint

Constructs a constraint requiring the components shapes longer edges to have perpendicular alignment.

Create_RectanglesSameLength ( int componentIndexA, int componentIndexB, float similarityMin = 0.8f ) : ShapeConstraint

Constructs a constraint requiring the components shapes longest edges to have the same length, within the difference difference parameter. The difference is defined as the ratio of the longest edges of the two components.

Method Details

Create_AtBackOf() public static method

Constructs a constraint requiring component B to be immediately in back of component A.
public static Create_AtBackOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint
componentIndexA int
componentIndexB int
return ShapeConstraint

Create_AtFrontOf() public static method

Constructs a constraint requiring component B to be immediately in front of component A.
public static Create_AtFrontOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint
componentIndexA int
componentIndexB int
return ShapeConstraint

Create_AtLeftOf() public static method

Constructs a constraint requiring component B to be immediately to the left of component A.
public static Create_AtLeftOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint
componentIndexA int
componentIndexB int
return ShapeConstraint

Create_AtRightOf() public static method

Constructs a constraint requiring component B to be immediately to the right of component A.
public static Create_AtRightOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint
componentIndexA int
componentIndexB int
return ShapeConstraint

Create_AwayFromWalls() public static method

Constructs a constraint requiring the shape to be away from all walls
public static Create_AwayFromWalls ( ) : ShapeConstraint
return ShapeConstraint

Create_NoOtherSurface() public static method

Constructs a constraint required no other surfaces be included in this shape
public static Create_NoOtherSurface ( ) : ShapeConstraint
return ShapeConstraint

Create_RectanglesAligned() public static method

Constructs a constraint requiring the components shapes to be either aligned with parallel or parallel alignment. The difference is the defined as the cosine of the angle between the best aligned axis (i.e. the dot product)
public static Create_RectanglesAligned ( int componentIndexA, int componentIndexB, float maxDifference = 0.1f ) : ShapeConstraint
componentIndexA int Zero based index of the first component constraint
componentIndexB int Zero based index of the second component constraint
maxDifference float Maximum difference
return ShapeConstraint

Create_RectanglesParallel() public static method

Constructs a constraint requiring the components shapes longer edges to have parallel alignment.
public static Create_RectanglesParallel ( int componentIndexA, int componentIndexB ) : ShapeConstraint
componentIndexA int Zero based index of the first component constraint
componentIndexB int Zero based index of the second component constraint
return ShapeConstraint

Create_RectanglesPerpendicular() public static method

Constructs a constraint requiring the components shapes longer edges to have perpendicular alignment.
public static Create_RectanglesPerpendicular ( int componentIndexA, int componentIndexB ) : ShapeConstraint
componentIndexA int Zero based index of the first component constraint
componentIndexB int Zero based index of the second component constraint
return ShapeConstraint

Create_RectanglesSameLength() public static method

Constructs a constraint requiring the components shapes longest edges to have the same length, within the difference difference parameter. The difference is defined as the ratio of the longest edges of the two components.
public static Create_RectanglesSameLength ( int componentIndexA, int componentIndexB, float similarityMin = 0.8f ) : ShapeConstraint
componentIndexA int Zero based index of the first component constraint
componentIndexB int Zero based index of the second component constraint
similarityMin float Maximum similarity
return ShapeConstraint

Property Details

Param_Float_0 public_oe property

public float Param_Float_0
return float

Param_Int_0 public_oe property

public int Param_Int_0
return int

Param_Int_1 public_oe property

public int Param_Int_1
return int

Type public_oe property

public ShapeConstraintType Type
return ShapeConstraintType