Click or drag to resize
AB4D logo

BaseCameraIsValid Method

Gets a Boolean that specifies if the camera is valid (has TargetViewport3D that has a valid size; has valid values for all properties). When camera is valid the Point3DTo2D(Point3D) returns correct value; when the camera is not valid, the Point3DTo2D method cannot calculate the 2D screen position.

Namespace:  Ab3d.Cameras
Assembly:  Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 10.1.8147.1045
Syntax
C#
public virtual bool IsValid(
	bool checkAllProperties = true
)

Parameters

checkAllProperties (Optional)
Type: SystemBoolean
when true (by default) then all camera properties are checked for valid values; when false then only check that TargetViewport3D is set and its size is not empty is done (used for performance critical job because this avoid reading many DependencyProperties)

Return Value

Type: Boolean
true when camera is valid (has TargetViewport3D that has a valid size)
See Also