KitchenDraw SDK 2
Show / Hide Table of Contents

Method IsPlacedOnTheRightOf

IsPlacedOnTheRightOf(Object, double)

See IsPlacedOnTheRightOf(Object, double, out double).

Declaration
public bool IsPlacedOnTheRightOf(Scene.Object referenceObject, double maxDistance = Infinity)
Parameters
Type Name Description
Scene.Object referenceObject
double maxDistance
Returns
Type Description
bool

IsPlacedOnTheRightOf(Object, double, out double)

Checks where the object is places on the right of the given reference object.

Declaration
public bool IsPlacedOnTheRightOf(Scene.Object referenceObject, double maxDistance, out double actualDistance)
Parameters
Type Name Description
Scene.Object referenceObject

An object to the right of which this object should be located.

double maxDistance

Maximum distance at which the object is still considered to be 'on the right' of given referenct object. Of the object will be located somewhere farther than this distance, false will be returned no matter whether it is located on the right or not.

double actualDistance

Output parameter that takes a value of actual distance between the closest bounding box point if this object and the right side of the reference object.

Returns
Type Description
bool

true if the object is on the right of the reference object, false otherwise.

In this article
Back to top Generated by DocFX