Html2CanvasPoint
Hierarchy
- BimPointBase
- Html2CanvasPoint
Index
Constructors
publicconstructor
Parameters
_api: BimCoreApi
plane: Plane
Plane that this point lies on.
Returns Html2CanvasPoint
Properties
public_parent
publicisEnabled
When true
then onPointTrackableScreen will trigger for this instance. Otherwise it will not
publicreadonlyplane
Plane that this point lies on.
Accessors
publiclocalX
X coordinate of point in local space.
Returns number
publiclocalY
Y coordinate of point in local space.
Returns number
publiclocalZ
Z coordinate of point in local space.
Returns number
publicx
X coordinate of point in world space.
Returns number
Set the X coordinate of point in world space.
Parameters
val: number
Returns void
publicy
Y coordinate of point in world space.
Returns number
Set the Y coordinate of point in world space.
Parameters
val: number
Returns void
publicz
Z coordinate of point in world space.
Returns number
Set the Z coordinate of point in world space.
Parameters
val: number
Returns void
Methods
publicmove
Attempt to move a point to a new location on Plane. To find the location, a ray is shot from camera through
canvasCoordinate
and then an intersection test is performed. If the ray intersects Plane, the point is moved to the coordinates of the intersection. Otherwise nothing happens. The point is assigned the same x,y,z values as the coordinate where the ray intersects the plane.Parameters
canvasCoordinate: Vertex2
Returns PointMoveResult
publicrotate
Returns void
publicscale
Parameters
retainAspectRatio: boolean = true
Returns void
publicsetLocals
Set coordinates in local space.
Parameters
x: number
X coordinate in local space.
y: number
Y coordinate in local space.
z: number
Z coordinate in local space.
Returns void
publictranlate
Returns void
BimCoreApi API.