C# 클래스 HoloToolkit.Unity.SpatialUnderstandingDllShapes.ShapeConstraint

파일 보기 프로젝트 열기: Microsoft/HoloToolkit-Unity

공개 프로퍼티들

프로퍼티 타입 설명
Param_Float_0 float
Param_Int_0 int
Param_Int_1 int
Type ShapeConstraintType

공개 메소드들

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

메소드 상세

Create_AtBackOf() 공개 정적인 메소드

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
리턴 ShapeConstraint

Create_AtFrontOf() 공개 정적인 메소드

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
리턴 ShapeConstraint

Create_AtLeftOf() 공개 정적인 메소드

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
리턴 ShapeConstraint

Create_AtRightOf() 공개 정적인 메소드

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
리턴 ShapeConstraint

Create_AwayFromWalls() 공개 정적인 메소드

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

Create_NoOtherSurface() 공개 정적인 메소드

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

Create_RectanglesAligned() 공개 정적인 메소드

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
리턴 ShapeConstraint

Create_RectanglesParallel() 공개 정적인 메소드

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
리턴 ShapeConstraint

Create_RectanglesPerpendicular() 공개 정적인 메소드

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
리턴 ShapeConstraint

Create_RectanglesSameLength() 공개 정적인 메소드

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
리턴 ShapeConstraint

프로퍼티 상세

Param_Float_0 공개적으로 프로퍼티

public float Param_Float_0
리턴 float

Param_Int_0 공개적으로 프로퍼티

public int Param_Int_0
리턴 int

Param_Int_1 공개적으로 프로퍼티

public int Param_Int_1
리턴 int

Type 공개적으로 프로퍼티

public ShapeConstraintType Type
리턴 ShapeConstraintType