KitchenDraw SDK 2
Show / Hide Table of Contents

Method IsAgainstWall

IsAgainstWall(Object, int)

Returns true if the object is located against the given wall.

Declaration
public bool IsAgainstWall(Scene.Object wall, int maxDistance)
Parameters
Type Name Description
Scene.Object wall

The wall to check.

int maxDistance

Maximum distance in scene units between the object and the wall that is still considered as "against".

Returns
Type Description
bool

true if the object is againt the wall, false otherwise.

Remarks

To be declared as "against the wall", the object should have the same orientation as the orientation of the wall and the object's reference point (its 0 point) should not be at a distance of the wall (in scene measurement units) less than or equal to maxDistance.

In this article
Back to top Generated by DocFX